witten
/
luminotes
Archived
1
0
Fork 0

Bug fix for displayed link pulldown destination getting replaced when it

contained an external URL and you changed the title of the link.
This commit is contained in:
Dan Helfman 2007-10-17 21:22:21 +00:00
parent d7ee122efb
commit f2e7ed17ca
1 changed files with 4 additions and 1 deletions

View File

@ -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 );