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

Add resume capability to GetTempFile

This commit is contained in:
LukePulverenti 2013-03-14 15:52:53 -04:00
parent e697585145
commit 7ee39b6f88

View file

@ -397,11 +397,15 @@ var Dashboard = {
if (!info.HasPendingRestart) { if (!info.HasPendingRestart) {
Dashboard.reloadPage(); Dashboard.reloadPage();
} else { } else {
Dashboard.reloadPageWhenServerAvailable(retryCount); Dashboard.retryReload(retryCount);
} }
}).fail(function() { }).fail(function() {
Dashboard.retryReload(retryCount);
});
},
retryReload: function (retryCount) {
setTimeout(function () { setTimeout(function () {
retryCount = retryCount || 0; retryCount = retryCount || 0;
@ -413,7 +417,6 @@ var Dashboard = {
Dashboard.suppressAjaxErrors = false; Dashboard.suppressAjaxErrors = false;
} }
}, 500); }, 500);
});
}, },
getPosterViewHtml: function (options) { getPosterViewHtml: function (options) {