summaryrefslogtreecommitdiff
path: root/lib/scripts/linkwiz.js
diff options
context:
space:
mode:
authorMichael Hamann <michael@content-space.de>2010-10-02 20:34:35 +0200
committerMichael Hamann <michael@content-space.de>2010-10-02 20:36:34 +0200
commit34c350b273b2b5046b7dbd7ba852fcd3e137a6f7 (patch)
tree5941a3e29b7e2d244d90832edcaf352af803fcc1 /lib/scripts/linkwiz.js
parent0b8362164d6b8853a5fcee5f590786de4cd5bcf1 (diff)
downloadrpg-34c350b273b2b5046b7dbd7ba852fcd3e137a6f7.tar.gz
rpg-34c350b273b2b5046b7dbd7ba852fcd3e137a6f7.tar.bz2
Link wizard starts with the last opened namespace FS#1989
Diffstat (limited to 'lib/scripts/linkwiz.js')
-rw-r--r--lib/scripts/linkwiz.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/scripts/linkwiz.js b/lib/scripts/linkwiz.js
index 779c4d704..e4e92cdd2 100644
--- a/lib/scripts/linkwiz.js
+++ b/lib/scripts/linkwiz.js
@@ -225,6 +225,8 @@ var linkwiz = {
pasteText(sel,link,{startofs: so, endofs: eo});
linkwiz.hide();
+ // reset the entry to the parent namespace and remove : at the beginning
+ linkwiz.entry.value = linkwiz.entry.value.replace(/(^:)?[^:]*$/, '');
},
/**