Skip to content
Snippets Groups Projects
Commit c21dca26 authored by Andreas Gohr's avatar Andreas Gohr
Browse files

LinkWizard: fix for problems with root links in subnamespaces FS#1771

Ignore-this: e07c765961bc73acda47cb4b2a464fde

darcs-hash:20091102121632-6e07b-0bd882243d225753c8dd9e2992914d1b723b4ce0.gz
parent 5808bc54
No related branches found
No related tags found
No related merge requests found
......@@ -198,6 +198,12 @@ var linkwiz = {
var stxt = sel.getText();
if(!stxt) stxt=title;
// prepend colon inside namespaces for non namespace pages
if(linkwiz.textArea.form['id'].value.indexOf(':') != -1 &&
linkwiz.entry.value.indexOf(':') == -1){
linkwiz.entry.value = ':'+linkwiz.entry.value;
}
var link = '[['+linkwiz.entry.value+'|';
if(stxt) link += stxt;
link += ']]';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment