mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-02-01 03:12:42 +01:00
fix issue #1369 where params would break import
This commit is contained in:
parent
33e0ec2097
commit
e23108d199
1 changed files with 4 additions and 2 deletions
|
@ -211,9 +211,11 @@ var padimpexp = (function()
|
||||||
pad = _pad;
|
pad = _pad;
|
||||||
|
|
||||||
//get /p/padname
|
//get /p/padname
|
||||||
var pad_root_path = new RegExp(/.*\/p\/[^\/]+/).exec(document.location.pathname)
|
var pad_root_path = new RegExp(/.*\/p\/[^\/]+/).exec(document.location.pathname);
|
||||||
//get http://example.com/p/padname
|
//get http://example.com/p/padname
|
||||||
var pad_root_url = document.location.href.replace(document.location.pathname, pad_root_path)
|
var pad_root_url = document.location.href.replace(document.location.pathname, pad_root_path);
|
||||||
|
//strip out params IE ?noColor=true
|
||||||
|
pad_root_url = pad_root_url.substring(0, pad_root_url.indexOf('?'));
|
||||||
|
|
||||||
//i10l buttom import
|
//i10l buttom import
|
||||||
$('#importsubmitinput').val(html10n.get("pad.impexp.importbutton"));
|
$('#importsubmitinput').val(html10n.get("pad.impexp.importbutton"));
|
||||||
|
|
Loading…
Reference in a new issue