[Special:Preferences] Switch tabs when hash is set to an item in another tab.
authorScimonster <tehalmightyscimonster@gmail.com>
Sat, 19 Dec 2015 22:23:07 +0000 (00:23 +0200)
committerScimonster <tehalmightyscimonster@gmail.com>
Sun, 20 Dec 2015 15:30:40 +0000 (17:30 +0200)
commit9813c2143c8bb54560ce384bd42b8a07f2eb8c03
tree56bfa6a0edd6d6ab1037bab2474369ca546bae46
parent880e34e0a41352f0cde825282ba3e762402451d3
[Special:Preferences] Switch tabs when hash is set to an item in another tab.

If the hash is set to a specific preference item (such as
Special:Preferences#mw-input-wprcdays),
automatically switch to the tab the item is located on and scroll to it.
Move the code that handled the hash into a separate function for DRY-
ness.
Fix a couple comment typos.
Task done as part of GCI2015.

Bug: T54469
Change-Id: I9e0573b37a847ab915b7c74facf65b3d24883064
resources/src/mediawiki.special/mediawiki.special.preferences.js