From 9bff9c69d6983dc190c189647821e12d0f134883 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Mon, 11 Jan 2010 22:16:31 +0100 Subject: finally and officially: webinterface home page working ;) --- module/web/media/default/js/funktions.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'module/web/media/default/js/funktions.js') 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 -- cgit v1.2.3