mediawiki-skins-MinervaNeue/resources
Stephen Niedzielski b106ed3219 Fix: update edit button lock style state
When a user is allowed to make edits, show a normal edit button. When a
user cannot make edits, show the locked button.

This patch refactors edit button presentation logic into a new function,
updateEditPageButton(), which consistently updates the UI for both
enabled and disabled states. Additionally, in cases where the old code
only displayed the button via `$caEdit.removeClass( 'hidden' )`, the new
code now updates the state appropriately which is a functional change.
Finally, this patch sprinkles in some TODOs for future minor refactors
that were identified while creating this patch.

Bug: T190834
Change-Id: I083e91f0328cc057541ad42a27aae31b32b3d050
2018-04-09 17:40:00 +00:00
..
skins.minerva.backtotop Use jsdoc for generating Minerva documentation 2018-03-15 15:01:41 -07:00
skins.minerva.base.reset Removing tap-highlight override for iOS 2018-03-01 19:04:13 +00:00
skins.minerva.base.styles Fixes for action=edit page styling 2018-04-05 23:13:49 +00:00
skins.minerva.categories Hygiene: move CategoryAddOverlay window use to client 2018-03-01 18:17:34 +00:00
skins.minerva.content.styles Special handling for links without href attribute 2018-03-29 15:58:09 -07:00
skins.minerva.editor Fix: update edit button lock style state 2018-04-09 17:40:00 +00:00
skins.minerva.icons.images Unify SVG markup 2017-11-14 21:44:40 +00:00
skins.minerva.icons.images.scripts Add icons for all the types of issues 2018-03-15 15:02:05 -07:00
skins.minerva.icons.images.variants Unify SVG markup 2017-11-14 21:44:40 +00:00
skins.minerva.mainMenu Use jsdoc for generating Minerva documentation 2018-03-15 15:01:41 -07:00
skins.minerva.mainMenu.icons Prefix icons in Minerva 2018-01-19 15:30:03 -08:00
skins.minerva.mainMenu.styles Replace abandoned color variables 2018-03-14 17:53:56 -07:00
skins.minerva.mainPage.styles Minerva is its own skin 2017-07-12 08:12:40 -07:00
skins.minerva.newusers Use jsdoc for generating Minerva documentation 2018-03-15 15:01:41 -07:00
skins.minerva.notifications Hygiene: Cleanup initialisation files 2017-09-07 17:48:58 +00:00
skins.minerva.notifications.badge Use jsdoc for generating Minerva documentation 2018-03-15 15:01:41 -07:00
skins.minerva.scripts Use OverlayManager for SearchOverlay 2018-04-05 15:23:36 +02:00
skins.minerva.scripts.top Minerva is its own skin 2017-07-12 08:12:40 -07:00
skins.minerva.tablet.scripts Fix: always show table of contents 2018-03-28 13:36:17 -05:00
skins.minerva.tablet.styles Explicitly use LESS variable for breakpoint defined in mediawiki ui 2018-02-06 22:23:32 +00:00
skins.minerva.talk Passing currentPageTitle option to TalkSectionAddOverlay 2018-02-28 21:08:00 +00:00
skins.minerva.toggling Remove main page toggle check 2018-02-07 09:10:47 -08:00
skins.minerva.userpage.icons Remove unused userpage icon from repo 2018-02-15 08:36:44 -08:00
skins.minerva.userpage.styles Restore Minerva specific userpage styles for all user pages 2018-02-13 16:14:54 -08:00
skins.minerva.watchstar Minerva is its own skin 2017-07-12 08:12:40 -07:00