Disable Preferences save button if settings have not changed
authorGeoffrey Mon <geofbot@gmail.com>
Fri, 27 Nov 2015 16:53:39 +0000 (11:53 -0500)
committerTheDJ <hartman.wiki@gmail.com>
Sat, 26 Dec 2015 00:01:16 +0000 (00:01 +0000)
commite0b421aec323b196a9c2ca1c050f09d93177a342
tree8e0da9d18a9950c64668bfd912cbe1992b771ac5
parent468667d53faf26c7b8f4e33bdef0a78ec08d0d58
Disable Preferences save button if settings have not changed

Disable the Special:Preferences 'Save' button if no
settings have been changed. This prevents unnecessary saving when
you can't remember if you saved the settings or not.
Uses new check for preference change to prevent disabling the button
if the user makes preferences changes before JS is done loading.

Bug: T89457
Change-Id: I1064c5e76a3c1f856b9b9288baaf39cc102edf8a
resources/src/mediawiki.special/mediawiki.special.preferences.js