move actions stuff to api bundle, as loading just it fails with etemplate bundle split in two parts (fixes error reported on devel list)

This commit is contained in:
Ralf Becker 2014-03-04 09:10:58 +00:00
parent 0ad6f6cda6
commit 04442bb0cf
3 changed files with 21 additions and 4 deletions

View File

@ -1714,7 +1714,7 @@ if ($app == 'home') continue;
{
if ($path == '/phpgwapi/js/jsapi/egw.js') continue; // loaded via own tag, and we must not load it twice!
$query = '';
unset($query);
list($path,$query) = explode('?',$path,2);
$mod = filemtime(EGW_SERVER_ROOT.$path);
@ -1771,9 +1771,22 @@ if ($app == 'home') continue;
// generate api bundle
$inc_mgr->include_js_file('/phpgwapi/js/jquery/jquery.js');
$inc_mgr->include_js_file('/phpgwapi/js/jquery/jquery-ui.js');
$inc_mgr->include_js_file('/phpgwapi/js/jsapi/jsapi.js');
$inc_mgr->include_js_file('/phpgwapi/js/egw_json.js');
$inc_mgr->include_js_file('/phpgwapi/js/jsapi/egw.js');
// dhtmlx tree & menu
$inc_mgr->include_js_file('/phpgwapi/js/dhtmlxtree/dhtmlxTree/sources/dhtmlxcommon.js');
$inc_mgr->include_js_file('/phpgwapi/js/dhtmlxtree/dhtmlxTree/sources/dhtmlxtree.js');
$inc_mgr->include_js_file('/phpgwapi/js/dhtmlxtree/dhtmlxMenu/sources/dhtmlxmenu.js');
// actions
$inc_mgr->include_js_file('/phpgwapi/js/egw_action/egw_action.js');
$inc_mgr->include_js_file('/phpgwapi/js/egw_action/egw_keymanager.js');
$inc_mgr->include_js_file('/phpgwapi/js/egw_action/egw_action_popup.js');
$inc_mgr->include_js_file('/phpgwapi/js/egw_action/egw_action_dragdrop.js');
$inc_mgr->include_js_file('/phpgwapi/js/egw_action/egw_dragdrop_dhtmlx_tree.js');
$inc_mgr->include_js_file('/phpgwapi/js/egw_action/egw_menu.js');
$inc_mgr->include_js_file('/phpgwapi/js/egw_action/egw_menu_dhtmlx.js');
$bundles['api'] = $inc_mgr->get_included_files();
// generate et2 bundle (excluding files in api bundle)

View File

@ -9,6 +9,10 @@
* @version $Id$
*/
/*egw:uses
egw_action;
*/
/**
* This file contains an egw_actionObjectInterface which allows a dhtmlx tree
* row to be a drag target and contains a function which transforms a complete

View File

@ -11,9 +11,9 @@
/*egw:uses
egw_menu;
/phpgwapi/js/dhtmlxtree/dhtmlxMenu/codebase/dhtmlxcommon.js;
/phpgwapi/js/dhtmlxtree/dhtmlxMenu/codebase/dhtmlxmenu.js;
/phpgwapi/js/dhtmlxtree/dhtmlxMenu/codebase/ext/dhtmlxmenu_ext.js;
/phpgwapi/js/dhtmlxtree/dhtmlxTenu/sources/dhtmlxcommon.js;
/phpgwapi/js/dhtmlxtree/dhtmlxMenu/sources/dhtmlxmenu.js;
/phpgwapi/js/dhtmlxtree/dhtmlxMenu/sources/ext/dhtmlxmenu_ext.js;
*/
// Need CSS, or it doesn't really work