Preserve Special:Preferences tab state across reload, open in new tab/window.
authorBrion Vibber <brion@users.mediawiki.org>
Sat, 5 Feb 2011 21:54:56 +0000 (21:54 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Sat, 5 Feb 2011 21:54:56 +0000 (21:54 +0000)
commit62e35069b8ef60a60ab5a8d1443108163a7bd958
treefeed642fcfb43f3b9f392318dbe2f01697e6b42b
parentd10a408d5ffd797c1dcbd484bc3f2408627d5bae
Preserve Special:Preferences tab state across reload, open in new tab/window.

* removed the preventDefault()s from handlers on the tab links, so the document hash gets updated (and thus preserved on reload)
* switched from #prefsection-N to #preftab-N on the generated links, so they don't cause the doc to jump down to the top of the tab sections on click now that the preventDefault is gone
* added a check for the hash after tab setup; if we have a #preftab-N then we invoke the tab-switch straight off.

This should keep devs from going insane when doing work on any preferences panel other than the first one
resources/mediawiki.special/mediawiki.special.preferences.js