summaryrefslogtreecommitdiffstats
path: root/modules-available/serversetup-bwlp/templates/ipxe_update.html
diff options
context:
space:
mode:
authorSimon Rettberg2018-09-26 14:50:32 +0200
committerSimon Rettberg2018-09-26 14:50:32 +0200
commit84e147f238286c1dff78b5f9b5488167293f6d35 (patch)
tree6943213877947e644b181296dfedad7af2e96afd /modules-available/serversetup-bwlp/templates/ipxe_update.html
parent[serversetup-bwlp] Detect wether we run our modified iPXE (diff)
downloadslx-admin-84e147f238286c1dff78b5f9b5488167293f6d35.tar.gz
slx-admin-84e147f238286c1dff78b5f9b5488167293f6d35.tar.xz
slx-admin-84e147f238286c1dff78b5f9b5488167293f6d35.zip
[serversetup-bwlp] Don't allow recompilation if already in progress
Diffstat (limited to 'modules-available/serversetup-bwlp/templates/ipxe_update.html')
-rw-r--r--modules-available/serversetup-bwlp/templates/ipxe_update.html5
1 files changed, 4 insertions, 1 deletions
diff --git a/modules-available/serversetup-bwlp/templates/ipxe_update.html b/modules-available/serversetup-bwlp/templates/ipxe_update.html
index c5aafa1c..71611085 100644
--- a/modules-available/serversetup-bwlp/templates/ipxe_update.html
+++ b/modules-available/serversetup-bwlp/templates/ipxe_update.html
@@ -14,7 +14,7 @@
{{lang_generationFailed}}
</div>
</div>
- <div data-tm-id="{{taskid}}" data-tm-log="log" data-tm-log-height="31em" data-tm-callback="ipxeGenCb">{{lang_menuGeneration}}</div>
+ <div id="tm-compile-div" data-tm-id="{{taskid}}" data-tm-log="log" data-tm-log-height="36em" data-tm-callback="ipxeGenCb">{{lang_menuGeneration}}</div>
</div>
</div>
@@ -27,6 +27,9 @@
if (task.data.pxeDone) $('#built-pxe').removeClass('invisible');
if (task.data.usbDone) $('#built-usb').removeClass('invisible');
}
+ if (task.statusCode === 'TASK_ERROR' || task.statusCode === 'TASK_FINISHED') {
+ $('#tm-compile-div').find('pre').hide();
+ }
if (task.statusCode === 'TASK_ERROR') {
var $gf = $('#genfailed');
if (task.data && task.data.errors) {