2012-03-09 16:32:29 +01:00
|
|
|
/**
|
|
|
|
* 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;
|
|
|
|
*/
|
|
|
|
|
2016-02-29 16:50:24 +01:00
|
|
|
/**
|
|
|
|
* 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";
|
2012-03-09 16:32:29 +01:00
|
|
|
|
|
|
|
// 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([
|
2016-06-06 17:38:20 +02:00
|
|
|
this.webserverUrl + '/vendor/bower-asset/jquery/dist/jquery.js',
|
|
|
|
this.webserverUrl + '/vendor/bower-asset/jquery-ui/jquery-ui.js',
|
2016-04-07 12:38:05 +02:00
|
|
|
this.webserverUrl + '/api/js/jquery/jquery.html5_upload.js'
|
2012-03-09 16:32:29 +01:00
|
|
|
], function () {
|
2016-06-02 16:51:15 +02:00
|
|
|
this.constant('jquery', 'jQuery', _wnd.jQuery, _wnd);
|
2012-03-09 16:32:29 +01:00
|
|
|
ready.readyDone(token);
|
|
|
|
}, this);
|
|
|
|
|
|
|
|
return {
|
2016-06-02 16:51:15 +02:00
|
|
|
'jQuery': null
|
2016-02-29 16:50:24 +01:00
|
|
|
};
|
2012-03-09 16:32:29 +01:00
|
|
|
});
|