From 0a8419c1d88bee86dfdaf41e574a34b806bfe4cc Mon Sep 17 00:00:00 2001 From: Denis Flaven Date: Mon, 23 Mar 2015 17:57:35 +0000 Subject: [PATCH] #594: properly display attachments inside "properties" by closing the span and the fieldset in non-edit mode. SVN:2.0.3[3513] --- datamodels/2.x/itop-attachments/main.attachments.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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('

'.$sFileName.'

  
'); } } + $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('');} else { return '$sPreviewNotAvailable'; }}});"); }