Fixed problems with titles in images and links
This commit is contained in:
parent
b42678fcab
commit
b8b4c2d440
|
@ -1756,7 +1756,7 @@ function html_print_image ($src, $return = false, $options = false,
|
||||||
}
|
}
|
||||||
|
|
||||||
// New way to show the force_title (cleaner and better performance)
|
// 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" ';
|
$output .= 'data-use_title_for_force_title="1" ';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -185,7 +185,7 @@ function forced_title_callback() {
|
||||||
// into their 'data' prop, the element title will be used for the
|
// into their 'data' prop, the element title will be used for the
|
||||||
// content.
|
// content.
|
||||||
if ($(this).data("use_title_for_force_title")) {
|
if ($(this).data("use_title_for_force_title")) {
|
||||||
var title = $(this).prop("title");
|
var title = $(this).data("title");
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
var title = $('#forced_title_'+img_id).html();
|
var title = $('#forced_title_'+img_id).html();
|
||||||
|
|
Loading…
Reference in New Issue