mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
Fixed problems with title in images. Tiquet:2323
This commit is contained in:
parent
48a3be7c80
commit
b42678fcab
@ -181,7 +181,16 @@ function forced_title_callback() {
|
|||||||
// Put title in the layer
|
// Put title in the layer
|
||||||
///////////////////////////////////////////
|
///////////////////////////////////////////
|
||||||
|
|
||||||
var title = $('#forced_title_'+img_id).html();
|
// If the '.forced_title' element has 'use_title_for_force_title' = 1
|
||||||
|
// 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");
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
var title = $('#forced_title_'+img_id).html();
|
||||||
|
}
|
||||||
|
|
||||||
$('#forced_title_layer').html(title);
|
$('#forced_title_layer').html(title);
|
||||||
|
|
||||||
///////////////////////////////////////////
|
///////////////////////////////////////////
|
||||||
|
Loading…
x
Reference in New Issue
Block a user