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();
|
$("#ajax_loader").hide();
|
||||||
$('#resultmodal').modal('show');
|
$('#resultmodal').modal('show');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
$("body").on("change", ".input[name=url]", function() {
|
$("body").on("change", "input[name=url]", function() {
|
||||||
$(".label[for=expected]").html("Capture services after reboot? (1: yes; 0: no)");
|
if($("input[name=url]").val() == "reboot") {
|
||||||
$(".input[name=url]").attr("placeholder", "1");
|
$(".label[for=expected]").html("Capture services after reboot? (1: yes; 0: no)");
|
||||||
})
|
$("input[name=expected]").attr("placeholder", "1");
|
||||||
|
}
|
||||||
|
})
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue