From f2e7ed17caae62396309515a307b78beed1c080a Mon Sep 17 00:00:00 2001 From: Dan Helfman Date: Wed, 17 Oct 2007 21:22:21 +0000 Subject: [PATCH] Bug fix for displayed link pulldown destination getting replaced when it contained an external URL and you changed the title of the link. --- static/js/Editor.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/static/js/Editor.js b/static/js/Editor.js index 2f08f9d..fc3ebce 100644 --- a/static/js/Editor.js +++ b/static/js/Editor.js @@ -550,8 +550,11 @@ function parse_query( link ) { } // convenience function for getting a link's title (stripped of whitespace), either from a query -// argument in the href or from the actual link title +// argument in the href, from the actual link title, or from the link's href function link_title( link, query ) { + if ( link.target ) + return link.href; + if ( !query ) query = parse_query( link );