diff --git a/datamodels/2.x/itop-attachments/main.attachments.php b/datamodels/2.x/itop-attachments/main.attachments.php index 062f204df..e2c0d8987 100755 --- a/datamodels/2.x/itop-attachments/main.attachments.php +++ b/datamodels/2.x/itop-attachments/main.attachments.php @@ -440,7 +440,6 @@ EOF ); $oPage->p(''); $oPage->p(''); - $oPage->add(''); if ($this->m_bDeleteEnabled) { $oPage->add_ready_script('$(".attachment").hover( function() {$(this).children(":button").toggleClass("btn_hidden"); } );'); @@ -466,7 +465,9 @@ EOF $oPage->add('
'); } } + $oPage->add(''); } + $oPage->add(''); $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('