summaryrefslogtreecommitdiff
path: root/lib/scripts
diff options
context:
space:
mode:
authorMichael Große <grosse@cosmocode.de>2015-05-05 10:14:19 +0200
committerMichael Große <grosse@cosmocode.de>2015-05-05 10:16:28 +0200
commitb43a17acf599c3be018aa413a6e44ab61baf90ce (patch)
tree07121a5cbde4e39017b672043b34eb513a672790 /lib/scripts
parentdfe7cc3f3bfbfccec6a38a94ac0f2242e8bc59e7 (diff)
downloadrpg-b43a17acf599c3be018aa413a6e44ab61baf90ce.tar.gz
rpg-b43a17acf599c3be018aa413a6e44ab61baf90ce.tar.bz2
Add pipe to end of link pasted w/o title
It is helpful if the pipe is still inserted by the linkwizard when there is no title. This increases usability for beginners.
Diffstat (limited to 'lib/scripts')
-rw-r--r--lib/scripts/linkwiz.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/scripts/linkwiz.js b/lib/scripts/linkwiz.js
index 7c383ffe4..bc850226f 100644
--- a/lib/scripts/linkwiz.js
+++ b/lib/scripts/linkwiz.js
@@ -244,9 +244,10 @@ var dw_linkwiz = {
so += dw_linkwiz.val.open.length;
link = dw_linkwiz.val.open+link;
}
+ link += '|';
+ so += 1;
if(stxt) {
- link += '|'+stxt;
- so += 1;
+ link += stxt;
}
if(dw_linkwiz.val.close) {
link += dw_linkwiz.val.close;