Added validation in edit and create
This commit is contained in:
parent
d4155645c4
commit
67ab931f57
12
js/site.js
12
js/site.js
|
@ -45,9 +45,11 @@ $(document).ready(function() {
|
|||
$("#ajax_loader").hide();
|
||||
$('#resultmodal').modal('show');
|
||||
});
|
||||
});
|
||||
$("body").on("change", ".input[name=url]", function() {
|
||||
$(".label[for=expected]").html("Capture services after reboot? (1: yes; 0: no)");
|
||||
$(".input[name=url]").attr("placeholder", "1");
|
||||
})
|
||||
});
|
||||
$("body").on("change", "input[name=url]", function() {
|
||||
if($("input[name=url]").val() == "reboot") {
|
||||
$(".label[for=expected]").html("Capture services after reboot? (1: yes; 0: no)");
|
||||
$("input[name=expected]").attr("placeholder", "1");
|
||||
}
|
||||
})
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue