summaryrefslogtreecommitdiffstats
path: root/module/web/media/default/js/funktions.js
diff options
context:
space:
mode:
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