Fix some styles for execution options dialog
This commit is contained in:
parent
1767cef701
commit
6ed37743a5
|
@ -7,6 +7,7 @@
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
|
|
||||||
var has_execution_options = ${'true' if master.has_execution_options(batch) else 'false'};
|
var has_execution_options = ${'true' if master.has_execution_options(batch) else 'false'};
|
||||||
|
var dialog_opened = false;
|
||||||
|
|
||||||
$(function() {
|
$(function() {
|
||||||
|
|
||||||
|
@ -15,7 +16,7 @@
|
||||||
if (has_execution_options) {
|
if (has_execution_options) {
|
||||||
$('#execution-options-dialog').dialog({
|
$('#execution-options-dialog').dialog({
|
||||||
title: "Execution Options",
|
title: "Execution Options",
|
||||||
width: 500,
|
width: 550,
|
||||||
height: 300,
|
height: 300,
|
||||||
modal: true,
|
modal: true,
|
||||||
buttons: [
|
buttons: [
|
||||||
|
@ -32,7 +33,13 @@
|
||||||
$(this).dialog('close');
|
$(this).dialog('close');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
],
|
||||||
|
open: function() {
|
||||||
|
if (! dialog_opened) {
|
||||||
|
$('#execution-options-dialog select').selectmenu();
|
||||||
|
dialog_opened = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
$(this).button('option', 'label', "Executing, please wait...").button('disable');
|
$(this).button('option', 'label', "Executing, please wait...").button('disable');
|
||||||
|
|
Loading…
Reference in a new issue