mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-21 22:22:15 +01:00
calling jQuery.noConflict() as early as possible to NOT occupy $ variable stalling many SiteMgr templates
This commit is contained in:
parent
d40a3aa34f
commit
2857511ac9
@ -54,6 +54,7 @@ module.exports = function (grunt) {
|
||||
files: {
|
||||
"api/js/jsapi.min.js": [
|
||||
"vendor/bower-asset/jquery/dist/jquery.js",
|
||||
"api/js/jquery/jquery.noconflict.js",
|
||||
"vendor/bower-asset/jquery-ui/jquery-ui.js",
|
||||
"api/js/jsapi/jsapi.js",
|
||||
"api/js/egw_json.js",
|
||||
|
16
api/js/jquery/jquery.noconflict.js
Normal file
16
api/js/jquery/jquery.noconflict.js
Normal file
@ -0,0 +1,16 @@
|
||||
/**
|
||||
* EGroupware API: switch jQuery to NOT use $ as early as possible
|
||||
*
|
||||
* @link http://www.egroupware.org
|
||||
* @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License
|
||||
* @package api
|
||||
* @subpackage ajax
|
||||
* @author Ralf Becker <rb@stylite.de>
|
||||
* @version $Id$
|
||||
*/
|
||||
|
||||
/*egw:uses
|
||||
/vendor/bower-asset/jquery/dist/jquery.js;
|
||||
*/
|
||||
|
||||
jQuery.noConflict();
|
@ -168,6 +168,7 @@ abstract class Framework extends Framework\Extra
|
||||
|
||||
// allways load jquery (not -ui) first
|
||||
'/vendor/bower-asset/jquery/dist/jquery.js',
|
||||
'/api/js/jquery/jquery.noconflict.js',
|
||||
// always include javascript helper functions
|
||||
'/api/js/jsapi/jsapi.js',
|
||||
'/api/js/jsapi/egw.js',
|
||||
|
@ -214,6 +214,7 @@ class Bundle
|
||||
|
||||
// generate api bundle
|
||||
$inc_mgr->include_js_file('/vendor/bower-asset/jquery/dist/jquery.js');
|
||||
$inc_mgr->include_js_file('/api/js/jquery/jquery.noconflict.js');
|
||||
$inc_mgr->include_js_file('/vendor/bower-asset/jquery-ui/jquery-ui.js');
|
||||
$inc_mgr->include_js_file('/api/js/jsapi/jsapi.js');
|
||||
$inc_mgr->include_js_file('/api/js/egw_json.js');
|
||||
|
Loading…
Reference in New Issue
Block a user