From 9f815e497726a8adbda6bb4b8f00c2ccf90b7850 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=98=8E?= <775174143@qq.com> Date: Fri, 19 Jul 2019 09:52:34 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/managements/_reject_authorization_model.html.erb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/views/managements/_reject_authorization_model.html.erb b/app/views/managements/_reject_authorization_model.html.erb index 6d7468f4..6adb6330 100644 --- a/app/views/managements/_reject_authorization_model.html.erb +++ b/app/views/managements/_reject_authorization_model.html.erb @@ -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;})