From 92baec128ea14a256eece937e903e1ed201b6aa3 Mon Sep 17 00:00:00 2001 From: Denis Flaven Date: Mon, 23 Mar 2015 17:52:17 +0000 Subject: [PATCH] #594: properly display attachments inside "properties" by closing the span and the fieldset in non-edit mode. SVN:trunk[3510] --- 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 b82d20d91..52c0a2f51 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')); $iMaxWidth = MetaModel::GetModuleSetting('itop-attachments', 'preview_max_width', 290); $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'; }}});");