From d9e6a3cb751a0715197451f06c12091fec2b0679 Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Mon, 2 Nov 2009 14:01:15 +0100 Subject: LinkWizard: don't add a title when useheading is used for content FS#1745 Ignore-this: 48f0da3ab0bf0178197b16e63143e1ca darcs-hash:20091102130115-6e07b-d10e1c076791cdeb08b87ec76d6be8730228c8fb.gz --- lib/scripts/linkwiz.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/scripts') diff --git a/lib/scripts/linkwiz.js b/lib/scripts/linkwiz.js index 2b31e73d1..ea3ee0cbe 100644 --- a/lib/scripts/linkwiz.js +++ b/lib/scripts/linkwiz.js @@ -196,7 +196,7 @@ var linkwiz = { if(!linkwiz.entry.value) return; var sel = getSelection(linkwiz.textArea); var stxt = sel.getText(); - if(!stxt) stxt=title; + if(!stxt && !DOKU_UHC) stxt=title; // prepend colon inside namespaces for non namespace pages if(linkwiz.textArea.form['id'].value.indexOf(':') != -1 && -- cgit v1.2.3