summaryrefslogtreecommitdiffstats
path: root/module/web/media/default/js/funktions.js
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-01-11 22:16:31 +0100
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-01-11 22:16:31 +0100
commit9bff9c69d6983dc190c189647821e12d0f134883 (patch)
tree163804a40136bb0d76b5b375a1ac83df212b775e /module/web/media/default/js/funktions.js
parentedited wrong file in last commit (diff)
downloadpyload-9bff9c69d6983dc190c189647821e12d0f134883.tar.xz
finally and officially: webinterface home page working ;)
Diffstat (limited to 'module/web/media/default/js/funktions.js')
-rw-r--r--module/web/media/default/js/funktions.js9
1 files changed, 8 insertions, 1 deletions
diff --git a/module/web/media/default/js/funktions.js b/module/web/media/default/js/funktions.js
index ed1471595..9ca165b36 100644
--- a/module/web/media/default/js/funktions.js
+++ b/module/web/media/default/js/funktions.js
@@ -13,4 +13,11 @@ function HumanFileSize(size)
var i = Math.floor(loga);
var a = Math.pow(1024, i);
return Math.round( size / a , 2) + " " + filesizename[i];
-} \ No newline at end of file
+}
+
+Array.prototype.remove = function(from, to) {
+ var rest = this.slice((to || from) + 1 || this.length);
+ this.length = from < 0 ? this.length + from : from;
+ if (this.length == 0) return [];
+ return this.push.apply(this, rest);
+}; \ No newline at end of file