diff --git a/pandora_console/include/functions_html.php b/pandora_console/include/functions_html.php index f08d48c3df..7113d564fb 100644 --- a/pandora_console/include/functions_html.php +++ b/pandora_console/include/functions_html.php @@ -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" '; } diff --git a/pandora_console/include/javascript/jquery.pandora.js b/pandora_console/include/javascript/jquery.pandora.js index 731975b642..b9df7f716f 100644 --- a/pandora_console/include/javascript/jquery.pandora.js +++ b/pandora_console/include/javascript/jquery.pandora.js @@ -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();