Skip to content
Permalink
Browse files

Small cleanups

  • Loading branch information...
flack committed Sep 10, 2019
1 parent 7ecec82 commit a06bf2cbb91c1d92f5b1c6e4276b0544b7d5c6e3
@@ -22,9 +22,7 @@
$head->add_stylesheet(MIDCOM_STATIC_URL . "/stock-icons/font-awesome-4.7.0/css/font-awesome.min.css");
$head->add_stylesheet(MIDCOM_STATIC_URL . "/midgard.admin.asgard/screen.css");
$head->add_jsfile(MIDCOM_JQUERY_UI_URL . '/core.min.js');
$head->add_jsfile(MIDCOM_JQUERY_UI_URL . '/widgets/mouse.min.js');
$head->add_jsfile(MIDCOM_JQUERY_UI_URL . '/widgets/draggable.min.js');
$head->enable_jquery_ui(['mouse', 'draggable']);
$head->add_jsfile(MIDCOM_STATIC_URL . '/midgard.admin.asgard/ui.js');
$head->add_jscript("var MIDGARD_ROOT = '" . midcom_connection::get_url('self') . "';");
$context = midcom_core_context::get();
@@ -100,7 +100,7 @@ private function _prepare_output()
$this->add_next_previous($this->_object, 'invoice/items/');
// This is used for the Drag&Drop sorting
midcom::get()->head->add_jsfile(MIDCOM_JQUERY_UI_URL . '/widgets/sortable.min.js');
midcom::get()->head->enable_jquery_ui(['sortable']);
}
/**

0 comments on commit a06bf2c

Please sign in to comment.
You can’t perform that action at this time.