mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-17 14:28:53 +02:00
Fixed a regression due to the change [2877] Tooltip to preview attachments
SVN:trunk[2898]
This commit is contained in:
@@ -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'; }}});");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user