Add resume capability to GetTempFile
This commit is contained in:
parent
e697585145
commit
7ee39b6f88
1 changed files with 17 additions and 14 deletions
|
@ -397,24 +397,27 @@ var Dashboard = {
|
|||
if (!info.HasPendingRestart) {
|
||||
Dashboard.reloadPage();
|
||||
} else {
|
||||
Dashboard.reloadPageWhenServerAvailable(retryCount);
|
||||
Dashboard.retryReload(retryCount);
|
||||
}
|
||||
|
||||
}).fail(function () {
|
||||
|
||||
setTimeout(function () {
|
||||
|
||||
retryCount = retryCount || 0;
|
||||
retryCount++;
|
||||
|
||||
if (retryCount < 10) {
|
||||
Dashboard.reloadPageWhenServerAvailable(retryCount);
|
||||
} else {
|
||||
Dashboard.suppressAjaxErrors = false;
|
||||
}
|
||||
}, 500);
|
||||
}).fail(function() {
|
||||
Dashboard.retryReload(retryCount);
|
||||
});
|
||||
},
|
||||
|
||||
retryReload: function (retryCount) {
|
||||
setTimeout(function () {
|
||||
|
||||
retryCount = retryCount || 0;
|
||||
retryCount++;
|
||||
|
||||
if (retryCount < 10) {
|
||||
Dashboard.reloadPageWhenServerAvailable(retryCount);
|
||||
} else {
|
||||
Dashboard.suppressAjaxErrors = false;
|
||||
}
|
||||
}, 500);
|
||||
},
|
||||
|
||||
getPosterViewHtml: function (options) {
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue