Make ViewModel bool parameters nullable
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
$(function() {
|
||||
$("form#leafdataquery .latr input.form-control")
|
||||
.rules("add",
|
||||
{
|
||||
//required: true
|
||||
required: function ()
|
||||
{
|
||||
return !!$(".lat input.form-control").val();
|
||||
}
|
||||
});
|
||||
});
|
||||
@@ -28,7 +28,8 @@
|
||||
return false;
|
||||
});
|
||||
|
||||
$("form:not(.confirm)").submit(function() {
|
||||
$("form:not(.confirm)").submit(function () {
|
||||
if (!$(this).valid()) return;
|
||||
var btn = $(this).find(":submit");
|
||||
btn.prop("disabled", true);
|
||||
btn.html(
|
||||
|
||||
Reference in New Issue
Block a user