1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

fixes #270 - server configurator won't start with IE8

This commit is contained in:
Luke Pulverenti 2013-05-13 11:00:03 -04:00
parent e48c0f781d
commit 7007c76980
6 changed files with 32 additions and 10 deletions

View file

@ -21,6 +21,32 @@ $.fn.checked = function (value) {
}
};
if (!Array.prototype.filter) {
Array.prototype.filter = function (fun /*, thisp*/) {
"use strict";
if (this == null)
throw new TypeError();
var t = Object(this);
var len = t.length >>> 0;
if (typeof fun != "function")
throw new TypeError();
var res = [];
var thisp = arguments[1];
for (var i = 0; i < len; i++) {
if (i in t) {
var val = t[i]; // in case fun mutates this
if (fun.call(thisp, val, i, t))
res.push(val);
}
}
return res;
};
}
var WebNotifications = {
show: function (data) {