Fix validation for Terms of Service

This commit is contained in:
2017-01-13 10:23:27 -05:00
parent 3ee9c11666
commit aeaf5002e9
9 changed files with 29 additions and 37 deletions
+1 -7
View File
@@ -1,12 +1,6 @@
function initFileUpload(objectContext) {
"use strict";
// enforcetrue attribute client support
jQuery.validator.addMethod("enforcetrue", function (value, element, param) {
return element.checked;
});
jQuery.validator.unobtrusive.adapters.addBool("enforcetrue");
$("form#create").data("validator").settings.submitHandler =
function (form) {
var identifier = $(form).find("input[name='Identifier']").val();
@@ -20,7 +14,7 @@
$(this).dialog("close");
}
}
});
});
};
// We use the upload handler integrated into Backload: