summaryrefslogtreecommitdiffstats
path: root/script
diff options
context:
space:
mode:
authorSimon Rettberg2017-01-18 13:36:05 +0100
committerSimon Rettberg2017-01-18 13:36:05 +0100
commit3ad2866e6bb80deb0597d37583060c75d99e9349 (patch)
tree715c09bb7739acb99abcf7e7efd8b5935ecd5ce0 /script
parent[sysconfig] Handle invalid chars in logfile when doing htmlspecialchars() (diff)
downloadslx-admin-3ad2866e6bb80deb0597d37583060c75d99e9349.tar.gz
slx-admin-3ad2866e6bb80deb0597d37583060c75d99e9349.tar.xz
slx-admin-3ad2866e6bb80deb0597d37583060c75d99e9349.zip
install.js: Fix coloring for an error case
Diffstat (limited to 'script')
-rw-r--r--script/install.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/script/install.js b/script/install.js
index a85f869c..9738f1a2 100644
--- a/script/install.js
+++ b/script/install.js
@@ -77,7 +77,7 @@ var slxTrigger = function (elem, moduleName) {
//alert('always: ' + moduleName + ', status: ' + slxModules[moduleName] + ', current: ' + slxCurrent);
if (slxModules[moduleName] === 'WORKING') {
slxModules[moduleName] = 'UPDATE_FAILED';
- $('#mod-' + moduleName).text('UPDATE_FAILED (No response from server)');
+ $('#mod-' + moduleName).text('UPDATE_FAILED (No response from server)').css('color', '#c00');
}
if (slxCurrent === moduleName) {
slxCurrent = false;
@@ -112,7 +112,9 @@ function slxRunNext(lastModule) {
slxRun(next);
} else {
slxCancelTimer();
- alert('Done.');
+ setTimeout(function() {
+ alert('Done.');
+ }, 10);
}
}