Bläddra i källkod

(HTML) Formatted Case Logs, Description and Notifications with inline images uploaded as Attachments. Beta Version !! - fix for missing magnificPopup()

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@3925 a333f486-631f-4898-b8df-5754b55c2be0
dflaven 9 år sedan
förälder
incheckning
47527d75df
1 ändrade filer med 3 tillägg och 2 borttagningar
  1. 3 2
      datamodels/2.x/itop-attachments/main.attachments.php

+ 3 - 2
datamodels/2.x/itop-attachments/main.attachments.php

@@ -241,6 +241,9 @@ EOF
 		$oPage->add('<fieldset>');
 		$oPage->add('<legend>'.Dict::S('Attachments:FieldsetTitle').'</legend>');
 
+		$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 !== '')
 			{