mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-27 18:33:39 +01:00
3add958afa
Egroupware will load into addressbook & show rows Most base files should be bundled server-side & included rollup.config.js controls the process Still needs work: - consider /dist directory for best-practice - cleanup - other built-in apps - EPL / external apps need Guy's multi-stage work
48 lines
1.2 KiB
JavaScript
48 lines
1.2 KiB
JavaScript
/**
|
|
* EGroupware clientside API object
|
|
*
|
|
* @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License
|
|
* @package etemplate
|
|
* @subpackage api
|
|
* @link http://www.egroupware.org
|
|
* @author Andreas Stöckel (as AT stylite.de)
|
|
* @version $Id$
|
|
*/
|
|
|
|
/*egw:uses
|
|
egw_core;
|
|
egw_files;
|
|
egw_ready;
|
|
*/
|
|
import './egw_core.js';
|
|
|
|
/**
|
|
* NOT USED
|
|
* @param {string} _app application name object is instanciated for
|
|
* @param {object} _wnd window object is instanciated for
|
|
*/
|
|
egw.extend('jquery', egw.MODULE_WND_LOCAL, function(_app, _wnd)
|
|
{
|
|
"use strict";
|
|
|
|
// Get the reference to the "files" and the "ready" module for the current
|
|
// window
|
|
var files = this.module('files', _wnd);
|
|
var ready = this.module('ready', _wnd);
|
|
|
|
// Include the jQuery and jQuery UI library.
|
|
var token = ready.readyWaitFor();
|
|
files.includeJS([
|
|
this.webserverUrl + '/vendor/bower-asset/jquery/dist/jquery.min.js',
|
|
this.webserverUrl + '/vendor/bower-asset/jquery-ui/jquery-ui.js',
|
|
this.webserverUrl + '/api/js/jquery/jquery.html5_upload.js'
|
|
], function () {
|
|
this.constant('jquery', 'jQuery', _wnd.jQuery, _wnd);
|
|
ready.readyDone(token);
|
|
}, this);
|
|
|
|
return {
|
|
'jQuery': null
|
|
};
|
|
});
|