Commit 408c20cf authored by Leigh B Stoller's avatar Leigh B Stoller
Browse files

Minor fixes. Start the state watcher when the dataset is busy or

allocating so we can change the state in the display.
parent 506a1197
......@@ -108,10 +108,14 @@ function (_, sup, moment, aptforms, ShowImagingModal,
* If the state is busy, then lets poll watching for it to
* go valid.
*/
if (cansnapshot &&
(fields.dataset_state == "busy" ||
fields.dataset_state == "allocating")) {
ShowProgressModal();
if (fields.dataset_state == "busy" ||
fields.dataset_state == "allocating") {
if (cansnapshot) {
ShowProgressModal();
}
else {
StateWatch();
}
}
}
......@@ -307,6 +311,7 @@ function (_, sup, moment, aptforms, ShowImagingModal,
// Handle submit button.
//
$('#snapshot_submit_button').click(function (event) {
sup.HideModal("#snapshot_modal");
event.preventDefault();
SubmitForm();
});
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment