summaryrefslogtreecommitdiffstats
path: root/js/lib_ajax.js
diff options
context:
space:
mode:
authorRobin <robin@Amaya.(none)>2010-04-04 16:50:04 +0200
committerRobin <robin@Amaya.(none)>2010-04-04 16:50:04 +0200
commit7657926a602a524cf651e7e2b95a3369261fbde1 (patch)
tree1462f20e771e417a17421b1f9d2f8b36ca1742d7 /js/lib_ajax.js
parente658a0025895d5aecc2c067234c5120cc21a63a2 (diff)
downloadnextcloud-server-7657926a602a524cf651e7e2b95a3369261fbde1.tar.gz
nextcloud-server-7657926a602a524cf651e7e2b95a3369261fbde1.zip
some cleanup in ajax fronted, give error message before starting an upload that is to big
Diffstat (limited to 'js/lib_ajax.js')
-rw-r--r--js/lib_ajax.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/js/lib_ajax.js b/js/lib_ajax.js
index 28062e66532..591058976b8 100644
--- a/js/lib_ajax.js
+++ b/js/lib_ajax.js
@@ -32,22 +32,22 @@ 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);
+ return 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);
+ return this.call(false,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10);
}
callBack.prototype.func=false;
callBack.prototype.obj=false;
callBack.prototype.call=function(dummy,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10){
//the dummy is just to provide compatibility with the normal call function and isn't used
- this.func.call(this.obj,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10);
+ return this.func.call(this.obj,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10);
}
callBack.prototype.apply=function(dummy,arguments){
//the dummy is just to provide compatibility with the normal call function and isn't used
- this.apply(this.obj,arguments);
+ return this.apply(this.obj,arguments);
}
//provide a simple way to add things to the onload