Special:Preference: Check for changes before enabling Save button
authorPrateek Saxena <prtksxna@gmail.com>
Mon, 2 Apr 2018 05:08:22 +0000 (10:38 +0530)
committerPrateek Saxena <prtksxna@gmail.com>
Mon, 2 Apr 2018 05:08:22 +0000 (10:38 +0530)
commit5ba12928c8f69800cbfccae770cc68bc11dce92c
treeb8e43dce3fa3a9bd65fd2245c2e8223347e0649b
parentdaac006ef6d366c9d09280af169670ccac772df0
Special:Preference: Check for changes before enabling Save button

* Changing mousedown and keydown to mouseup and keyup
  …so that isPrefsChanged gets the updated value and can return
  something useful

* Changing one to on
  …so that if a value is updated and then changed back to the
  original, the button can be disabled again

Bug: T180538
Change-Id: I7146f8d3166e09e13b26321e7a6a7c8ac74f9aaf
resources/src/mediawiki.special/mediawiki.special.preferences.confirmClose.js