summaryrefslogtreecommitdiffstats
path: root/sources/ext/dhtmlxscheduler_multisource.js
diff options
context:
space:
mode:
Diffstat (limited to 'sources/ext/dhtmlxscheduler_multisource.js')
-rw-r--r--sources/ext/dhtmlxscheduler_multisource.js26
1 files changed, 26 insertions, 0 deletions
diff --git a/sources/ext/dhtmlxscheduler_multisource.js b/sources/ext/dhtmlxscheduler_multisource.js
new file mode 100644
index 0000000..30829bc
--- /dev/null
+++ b/sources/ext/dhtmlxscheduler_multisource.js
@@ -0,0 +1,26 @@
+/*
+This software is allowed to use under GPL or you need to obtain Commercial or Enterise License
+to use it in non-GPL project. Please contact sales@dhtmlx.com for details
+*/
+(function(){
+
+ function backup(obj){
+ var t = function(){};
+ t.prototype = obj;
+ return t;
+ }
+
+ var old = scheduler._load;
+ scheduler._load=function(url,from){
+ url=url||this._load_url;
+ if (typeof url == "object"){
+ var t = backup(this._loaded);
+ for (var i=0; i < url.length; i++) {
+ this._loaded=new t();
+ old.call(this,url[i],from);
+ }
+ } else
+ old.apply(this,arguments);
+ }
+
+})(); \ No newline at end of file