diff --git a/ApiClient.js b/ApiClient.js index 509a6fd7d3..b23e337efa 100644 --- a/ApiClient.js +++ b/ApiClient.js @@ -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 diff --git a/dashboard-ui/scripts/edititemimages.js b/dashboard-ui/scripts/edititemimages.js index 7773fac39d..5da7f7d09f 100644 --- a/dashboard-ui/scripts/edititemimages.js +++ b/dashboard-ui/scripts/edititemimages.js @@ -294,4 +294,4 @@ $("#imageDropZone", page).off('dragover').off('drop'); }); -})(jQuery, document, window, FileReader, escape); \ No newline at end of file +})(jQuery, document, window, window.FileReader, escape); \ No newline at end of file diff --git a/dashboard-ui/scripts/extensions.js b/dashboard-ui/scripts/extensions.js index c729872e04..753c59b0a9 100644 --- a/dashboard-ui/scripts/extensions.js +++ b/dashboard-ui/scripts/extensions.js @@ -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) { diff --git a/dashboard-ui/scripts/site.js b/dashboard-ui/scripts/site.js index 9bfdba307f..9225c123ac 100644 --- a/dashboard-ui/scripts/site.js +++ b/dashboard-ui/scripts/site.js @@ -921,7 +921,7 @@ var Dashboard = { else if (type == "artist") { url = "itembynamedetails.html?artist=" + ApiClient.encodeName(cmd.ItemIdentifier) + "&context=" + (context || "music"); } - + if (url) { Dashboard.navigate(url); return; @@ -1141,12 +1141,8 @@ $(function () { $(document.body).append(footerHtml); 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) { - window.location = "http://windows.microsoft.com/en-us/internet-explorer/downloads/ie-10/worldwide-languages"; - } - }); + alert("This is an unsupported version of Internet Explorer. Please consider upgrading to IE10, Chrome, or Firefox."); } }); diff --git a/dashboard-ui/scripts/tvrecommended.js b/dashboard-ui/scripts/tvrecommended.js index 309ec69d17..cb7d2f0bde 100644 --- a/dashboard-ui/scripts/tvrecommended.js +++ b/dashboard-ui/scripts/tvrecommended.js @@ -36,7 +36,7 @@ Filters: "IsResumable", Limit: 8, Recursive: true, - Fields: "PrimaryImageAspectRatio,SeriesInfo,UserData", + Fields: "PrimaryImageAspectRatio,SeriesInfo,UserData" }; ApiClient.getItems(Dashboard.getCurrentUserId(), options).done(function (result) { diff --git a/packages.config b/packages.config index bfc7622a31..a9c296c072 100644 --- a/packages.config +++ b/packages.config @@ -1,6 +1,6 @@  - + \ No newline at end of file