Add "unsaved changes" warning to Special:Preferences
authorBrad Jorsch <bjorsch@wikimedia.org>
Wed, 30 Oct 2013 18:28:17 +0000 (14:28 -0400)
committerTim Starling <tstarling@wikimedia.org>
Fri, 19 Sep 2014 01:04:30 +0000 (11:04 +1000)
commit9084a3a1aaa6a0782142a02e870936bf4b75dcdb
tree5eda56552408403452c12a5cdd5be854d42709c0
parentbba2bc6ca01de21114328f61c5c8cb16c25f70e0
Add "unsaved changes" warning to Special:Preferences

Much like the similar warning on the edit page, it has been requested
that we display a warning if the user has made changes on
Special:Preferences and attempts to leave without saving.

This adapts the code from
resources/mediawiki.action/mediawiki.action.edit.editWarning.js to do
so.

Bug: 55966
Change-Id: Idb00f50ad8148cd80bd0af81b4cd06a0eb217d96
includes/Preferences.php
languages/i18n/en.json
languages/i18n/qqq.json
resources/Resources.php
resources/src/mediawiki.special/mediawiki.special.preferences.js