Fix validation for Terms of Service
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user