diff --git a/application/itopwebpage.class.inc.php b/application/itopwebpage.class.inc.php index 0b69f6669f..b606a68a75 100644 --- a/application/itopwebpage.class.inc.php +++ b/application/itopwebpage.class.inc.php @@ -91,6 +91,7 @@ class iTopWebPage extends nice_web_page $(".listResults").tablesorter( { headers: { 0:{sorter: false }}, widgets: ['zebra']} ); // sortable and zebra tables $(".date-pick").datePicker( {clickInput: false, createButton: true, startDate: '2000-01-01'} ); // Date picker $('#ModalDlg').jqm({ajax: '@href', trigger: 'a.jqmTrigger', overlay:70, modal:true, toTop:true}); // jqModal Window + //$('.display_block').draggable(); // make the blocks draggable EOF ); @@ -198,6 +199,20 @@ EOF echo "\n"; echo "\n"; echo "{$this->s_title}\n"; + // Stylesheets MUST be loaded before any scripts otherwise + // jQuery scripts may face some spurious problems (like failing on a 'reload') + foreach($this->a_linked_stylesheets as $a_stylesheet) + { + if ($a_stylesheet['condition'] != "") + { + echo "\n"; + } + } foreach($this->a_linked_scripts as $s_script) { echo "\n"; @@ -215,18 +230,6 @@ EOF } echo "\n"; } - foreach($this->a_linked_stylesheets as $a_stylesheet) - { - if ($a_stylesheet['condition'] != "") - { - echo "\n"; - } - } if (count($this->a_styles)>0) {