Permalink
Browse files

Correcting title attr. of display_link

Correction in `edit_link_save`:
Plugging in `data.url.title` as (untrimmed) `title` attribute (instead of plugging in `data.url.url`) when setting the variable `display_link`.
  • Loading branch information...
BstName committed Mar 29, 2016
1 parent cb86f5b commit 209e95e0932c301d0d7229eebb723f890cba5e84
Showing with 1 addition and 1 deletion.
  1. +1 −1 js/insert.js
View
@@ -147,7 +147,7 @@ function edit_link_save(id) {
if(data.status == 'success') {
if( data.url.title != '' ) {
- var display_link = '<a href="' + data.url.url + '" title="' + data.url.url + '">' + data.url.display_title + '</a><br/><small><a href="' + data.url.url + '">' + data.url.display_url + '</a></small>';
+ var display_link = '<a href="' + data.url.url + '" title="' + data.url.title + '">' + data.url.display_title + '</a><br/><small><a href="' + data.url.url + '">' + data.url.display_url + '</a></small>';
} else {
var display_link = '<a href="' + data.url.url + '" title="' + data.url.url + '">' + data.url.display_url + '</a>';
}

0 comments on commit 209e95e

Please sign in to comment.