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:
Robert Nix 2019-04-09 16:40:15 +00:00
commit 2073ebd8dd

View file

@ -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'));
}