Commit 4fd479f1 authored by Leigh B Stoller's avatar Leigh B Stoller

Change for Rob; make it more apparent that extension has been

completed. I used a dismiss modal. Also clear the Days box.
parent e13e42b1
......@@ -123,6 +123,11 @@ function (_, sup, moment, ShowIdleGraphs,
return;
}
LoadFirstRow();
// Make it harder to repeat action unintentionally.
if (action == "extend" || action == "terminate") {
$('#days').val("0");
}
sup.ShowModal("#success-modal");
};
sup.ShowModal("#waitwait-modal");
var xmlthing = sup.CallServerMethod(null, "status", method,
......
......@@ -548,3 +548,18 @@ pre {
</div>
</div>
</div>
<!-- Finished -->
<div id='success-modal' class='modal fade'>
<div class='modal-dialog'>
<div class='modal-content'>
<div class='modal-body'>
<button type='button' class='close' data-dismiss='modal'
aria-hidden='true'>&times;</button>
<center><h3>Operation Successful</h3>
<br>
<button class='btn btn-success btn-sm'
data-dismiss='modal'>Close</button></center>
</div>
</div>
</div>
</div>
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