diff --git a/Html/scripts/site.js b/Html/scripts/site.js
index cb4ba3bdd5..75521f9fde 100644
--- a/Html/scripts/site.js
+++ b/Html/scripts/site.js
@@ -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) {