Commit 7701cb31 authored by Leigh Stoller's avatar Leigh Stoller

When clicking the max extension checkbox, also make the input box

readonly to make it more clear that the input is ignored (the box
was already cleared).
parent efe0efb1
......@@ -122,16 +122,19 @@ $(function ()
if ($('#maximum-extension-checkbox').is(":checked")) {
current_extension_input = $('#howlong').val();
if (maxextension == null) {
alert("There is maximum extension!");
alert("There is no maximum extension!");
// Flip the checkbox back.
$('#maximum-extension-checkbox').prop("checked", false);
return;
}
// Kill the input field, it will be ignored.
$('#howlong').val("");
// And make it read only to make it clear.
$('#howlong').prop("readonly", true);
}
else {
$('#howlong').val(current_extension_input);
$('#howlong').prop("readonly", false);
}
});
}
......
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