Fix broken switchToPad method
parent
63c836ad55
commit
856fc5975b
|
@ -465,8 +465,8 @@ var pad = {
|
||||||
},
|
},
|
||||||
switchToPad: function(padId)
|
switchToPad: function(padId)
|
||||||
{
|
{
|
||||||
var newHref = new RegExp(/.*\/p\/[^\/]+/).exec(document.location.pathname) || clientVars.padId;
|
var options = document.location.href.split('?')[1];
|
||||||
newHref = newHref[0];
|
var newHref = padId;
|
||||||
if (typeof options != "undefined" && options != null){
|
if (typeof options != "undefined" && options != null){
|
||||||
newHref = newHref + '?' + options;
|
newHref = newHref + '?' + options;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue