mirror of
https://github.com/StarCitizenTools/mediawiki-extensions-TabberNeue.git
synced 2024-11-27 09:42:48 +00:00
Merge branch 'patch-1' into 'develop'
replace dot-encoding with percentage encoding, and underscores with spaces so... Closes #20 See merge request hydrawiki/extensions/Tabber!19
This commit is contained in:
commit
2073ebd8dd
|
@ -33,7 +33,7 @@
|
|||
}
|
||||
|
||||
// setup initial state
|
||||
var tab = decodeURI(location.hash.replace('#', ''));
|
||||
var tab = decodeURIComponent(location.hash.replace(/\./g,"%").replace(/_/g," ").replace('#', ''));
|
||||
if (tab === '' || !showContent(tab)) {
|
||||
showContent(tabContent.first().attr('title'));
|
||||
}
|
||||
|
@ -55,7 +55,7 @@
|
|||
});
|
||||
|
||||
function switchTab(event) {
|
||||
var tab = decodeURIComponent(location.hash.replace('#', ''));
|
||||
var tab = decodeURIComponent(location.hash.replace(/\./g,"%").replace(/_/g," ").replace('#', ''));
|
||||
if (!tab.length) {
|
||||
showContent(tabContent.first().attr('title'));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue