Fixed a regression due to the change [2877] Tooltip to preview attachments

SVN:trunk[2898]
This commit is contained in:
Romain Quetiez
2013-10-14 12:15:07 +00:00
parent 32ca9727f7
commit 046a7b0e2d

View File

@@ -382,7 +382,7 @@ EOF
}
}
}
$sPreviewNotAvailable = Dict::S('Attachments:PreviewNotAvailable');
$sPreviewNotAvailable = addslashes(Dict::S('Attachments:PreviewNotAvailable'));
$oPage->add_ready_script("$(document).tooltip({ items: '.attachment a', position: { my: 'left top', at: 'right top', using: function( position, feedback ) { $( this ).css( position ); }}, content: function() { if ($(this).attr('data-preview') == 'true') { return('<img style=\"max-width:290px\" src=\"'+$(this).attr('href')+'\"></img>');} else { return '$sPreviewNotAvailable'; }}});");
}