Make ViewModel bool parameters nullable

This commit is contained in:
2020-08-03 08:26:28 -04:00
parent 803717d9e5
commit b1bff76159
6 changed files with 22 additions and 9 deletions
+11
View File
@@ -0,0 +1,11 @@
$(function() {
$("form#leafdataquery .latr input.form-control")
.rules("add",
{
//required: true
required: function ()
{
return !!$(".lat input.form-control").val();
}
});
});
+2 -1
View File
@@ -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(