dev_aliyun
cxt 5 years ago
commit 0ea98e8c72

@ -84,6 +84,7 @@
var error = modal.find(".error");
modal.on("click", "input[name='reasons[]']", function(){
debugger
var checkbox = $(this);
if (checkbox.data("type") != "other") { return; }
@ -97,11 +98,13 @@
});
modal.on('click', '.submit-btn', function(){
debugger
if (!formValid()) { return; }
form.submit();
});
var formValid = function () {
debugger
error.html("").hide();
if (form.find("input[name='reasons[]']:checked").length == 0) {
error.html("撤销原因不能为空,请完善后再确认提交").show();
@ -117,6 +120,7 @@
};
var hideRejectModalFunc = function(){
debugger
applyIdInput.val('');
form.find("textarea[name='reject_description']").val('');
form.find("input[name='reasons[]']").each(function(){this.checked=false;})

Loading…
Cancel
Save