From 9c16b08e226587e411c8a9a2e7e945ac9d95101e Mon Sep 17 00:00:00 2001 From: Denis Flaven Date: Mon, 22 Feb 2016 14:20:53 +0000 Subject: [PATCH] (HTML) Formatted Case Logs, Description and Notifications with inline images uploaded as Attachments. Beta Version !! - fix for missing magnificPopup() SVN:trunk[3925] --- datamodels/2.x/itop-attachments/main.attachments.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/datamodels/2.x/itop-attachments/main.attachments.php b/datamodels/2.x/itop-attachments/main.attachments.php index b78054fa3..2ab248fe4 100755 --- a/datamodels/2.x/itop-attachments/main.attachments.php +++ b/datamodels/2.x/itop-attachments/main.attachments.php @@ -241,6 +241,9 @@ EOF $oPage->add('
'); $oPage->add(''.Dict::S('Attachments:FieldsetTitle').''); + $oPage->add_linked_stylesheet(utils::GetAbsoluteUrlModulesRoot().'itop-attachments/css/magnific-popup.css'); + $oPage->add_linked_script(utils::GetAbsoluteUrlModulesRoot().'itop-attachments/js/jquery.magnific-popup.min.js'); + if ($bEditMode) { $sIsDeleteEnabled = $this->m_bDeleteEnabled ? 'true' : 'false'; @@ -319,8 +322,6 @@ EOF $oPage->add_linked_script(utils::GetAbsoluteUrlAppRoot().'js/jquery.iframe-transport.js'); $oPage->add_linked_script(utils::GetAbsoluteUrlAppRoot().'js/jquery.fileupload.js'); - $oPage->add_linked_stylesheet(utils::GetAbsoluteUrlModulesRoot().'itop-attachments/css/magnific-popup.css'); - $oPage->add_linked_script(utils::GetAbsoluteUrlModulesRoot().'itop-attachments/js/jquery.magnific-popup.min.js'); $maxWidth = MetaModel::GetModuleSetting('itop-standard-email-synchro', 'inline_image_max_width', ''); if ($maxWidth !== '') {