Fixed problems with titles in images and links

This commit is contained in:
m-lopez-f 2015-06-19 14:42:18 +02:00
parent b42678fcab
commit b8b4c2d440
2 changed files with 2 additions and 2 deletions

View File

@ -1756,7 +1756,7 @@ function html_print_image ($src, $return = false, $options = false,
}
// New way to show the force_title (cleaner and better performance)
$output .= 'title="'.io_safe_input_html($options["title"]).'" ';
$output .= 'data-title="'.io_safe_input_html($options["title"]).'" ';
$output .= 'data-use_title_for_force_title="1" ';
}

View File

@ -185,7 +185,7 @@ function forced_title_callback() {
// into their 'data' prop, the element title will be used for the
// content.
if ($(this).data("use_title_for_force_title")) {
var title = $(this).prop("title");
var title = $(this).data("title");
}
else {
var title = $('#forced_title_'+img_id).html();