summaryrefslogtreecommitdiffstats
path: root/js/lib_ajax.js
diff options
context:
space:
mode:
authorRobin <robin@Amaya.(none)>2010-03-29 15:25:00 +0200
committerRobin <robin@Amaya.(none)>2010-03-29 15:25:00 +0200
commit5ac201dc834664989b04da9b28fc44bcd84874da (patch)
tree84a2bb90ad16a06ba6e593d5e2c4a628ad815d74 /js/lib_ajax.js
parent6822185c5bc33abe892bb9db904a96fbaa916f2c (diff)
downloadnextcloud-server-5ac201dc834664989b04da9b28fc44bcd84874da.tar.gz
nextcloud-server-5ac201dc834664989b04da9b28fc44bcd84874da.zip
most of the ajax frontend works in IE now (IE8 not sure about other versions)
Diffstat (limited to 'js/lib_ajax.js')
-rw-r--r--js/lib_ajax.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/js/lib_ajax.js b/js/lib_ajax.js
index 99979422511..28062e66532 100644
--- a/js/lib_ajax.js
+++ b/js/lib_ajax.js
@@ -21,10 +21,21 @@
//The callBack object provides an easy way to pass a member of an object as callback parameter and makes sure that the 'this' is always set correctly when called.
callBack=function(func,obj){
+ this.id=callBack.callBacks.length;
+ callBack.callBacks[this.id]=this;
this.func=func;
this.obj=obj;
}
+callBack.callBacks=Array();
+
+callBack.call=function(id,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10){
+ callback=callBack.callBacks[id];
+ if(callback){
+ callback.func.call(callback.obj,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10);
+ }
+}
+
callBack.prototype=function(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10){
this.call(false,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10);
}