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:
parent
e48c0f781d
commit
7007c76980
6 changed files with 32 additions and 10 deletions
|
@ -2513,7 +2513,7 @@ MediaBrowser.ApiClient = function ($, navigator, JSON, WebSocket, setTimeout) {
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
}(jQuery, navigator, JSON, window.WebSocket, setTimeout);
|
}(jQuery, navigator, window.JSON, window.WebSocket, setTimeout);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Provides a friendly way to create an api client instance using information from the browser's current url
|
* Provides a friendly way to create an api client instance using information from the browser's current url
|
||||||
|
|
|
@ -294,4 +294,4 @@
|
||||||
$("#imageDropZone", page).off('dragover').off('drop');
|
$("#imageDropZone", page).off('dragover').off('drop');
|
||||||
});
|
});
|
||||||
|
|
||||||
})(jQuery, document, window, FileReader, escape);
|
})(jQuery, document, window, window.FileReader, escape);
|
|
@ -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 = {
|
var WebNotifications = {
|
||||||
|
|
||||||
show: function (data) {
|
show: function (data) {
|
||||||
|
|
|
@ -1141,12 +1141,8 @@ $(function () {
|
||||||
$(document.body).append(footerHtml);
|
$(document.body).append(footerHtml);
|
||||||
|
|
||||||
if ($.browser.msie && parseInt($.browser.version) < 10) {
|
if ($.browser.msie && parseInt($.browser.version) < 10) {
|
||||||
Dashboard.confirm("This is an unsupported version of Internet Explorer. Please consider upgrading to IE10.", "Unsupported Browser", function (result) {
|
|
||||||
|
|
||||||
if (result) {
|
alert("This is an unsupported version of Internet Explorer. Please consider upgrading to IE10, Chrome, or Firefox.");
|
||||||
window.location = "http://windows.microsoft.com/en-us/internet-explorer/downloads/ie-10/worldwide-languages";
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -36,7 +36,7 @@
|
||||||
Filters: "IsResumable",
|
Filters: "IsResumable",
|
||||||
Limit: 8,
|
Limit: 8,
|
||||||
Recursive: true,
|
Recursive: true,
|
||||||
Fields: "PrimaryImageAspectRatio,SeriesInfo,UserData",
|
Fields: "PrimaryImageAspectRatio,SeriesInfo,UserData"
|
||||||
};
|
};
|
||||||
|
|
||||||
ApiClient.getItems(Dashboard.getCurrentUserId(), options).done(function (result) {
|
ApiClient.getItems(Dashboard.getCurrentUserId(), options).done(function (result) {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<packages>
|
<packages>
|
||||||
<package id="MediaBrowser.ApiClient.Javascript" version="3.0.109" targetFramework="net45" />
|
<package id="MediaBrowser.ApiClient.Javascript" version="3.0.110" targetFramework="net45" />
|
||||||
<package id="ServiceStack.Common" version="3.9.44" targetFramework="net45" />
|
<package id="ServiceStack.Common" version="3.9.44" targetFramework="net45" />
|
||||||
<package id="ServiceStack.Text" version="3.9.44" targetFramework="net45" />
|
<package id="ServiceStack.Text" version="3.9.44" targetFramework="net45" />
|
||||||
</packages>
|
</packages>
|
Loading…
Add table
Add a link
Reference in a new issue