From 046a7b0e2d95830eee097fff6fa6ea9fb80a02d0 Mon Sep 17 00:00:00 2001 From: Romain Quetiez Date: Mon, 14 Oct 2013 12:15:07 +0000 Subject: [PATCH] Fixed a regression due to the change [2877] Tooltip to preview attachments SVN:trunk[2898] --- datamodels/2.x/itop-attachments/main.attachments.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datamodels/2.x/itop-attachments/main.attachments.php b/datamodels/2.x/itop-attachments/main.attachments.php index 9648652707..bc2b52ae67 100755 --- a/datamodels/2.x/itop-attachments/main.attachments.php +++ b/datamodels/2.x/itop-attachments/main.attachments.php @@ -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('');} else { return '$sPreviewNotAvailable'; }}});"); }