Commit 009a09b6 by 杨树贤

大范围disable出现的bug

parent 1bfefbbd
...@@ -28,12 +28,12 @@ ...@@ -28,12 +28,12 @@
if (res.err_code === -1) { if (res.err_code === -1) {
$(this).after("<div id='supplier_check_tip' style='margin-top: 10px'>" + $(this).after("<div id='supplier_check_tip' style='margin-top: 10px'>" +
"<p style='color: red;'>供应商已存在,请重新输入或者咨询审批人</p></div>"); "<p style='color: red;'>供应商已存在,请重新输入或者咨询审批人</p></div>");
$('input').prop('disabled', true); // $('input').prop('disabled', true);
$('textarea').prop('disabled', true); // $('textarea').prop('disabled', true);
$('#supplier_name').prop('disabled', false); $('#supplier_name').prop('disabled', false);
} else { } else {
$('input').prop('disabled', false); // $('input').prop('disabled', false);
$('textarea').prop('disabled', false); // $('textarea').prop('disabled', false);
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment