Check each Special:Preferences input for changes
authorGeoffrey Mon <geofbot@gmail.com>
Thu, 26 Nov 2015 21:41:41 +0000 (16:41 -0500)
committerDerk-Jan Hartman <hartman.wiki@gmail.com>
Fri, 25 Dec 2015 21:19:58 +0000 (22:19 +0100)
commit3d076c0ff0f6245cbd20576fb777ca6a31be0d1a
tree50751442ebf97adef5ef2f820acce80b2a03cbae
parente7fa880a9d14f390267c675bab91518215ff1c1f
Check each Special:Preferences input for changes

When checking for changes in the Special:Preferences form, instead of serializing
original form data (which fails with asynchronous loading of JS, if the user changes
something before JS is done loading), compare the value of each input to the default
value.

Bug: T119732
Change-Id: Ib48a9b334f639e417a0642c6c090ba18afc477ce
resources/src/mediawiki.special/mediawiki.special.preferences.js