针对性屏蔽Enter

master
RuoYi 5 years ago committed by Limy
parent 9c437af757
commit 7f08603c4f

@ -55,8 +55,10 @@ $(function() {
}); });
// 取消回车自动提交表单 // 取消回车自动提交表单
$(document).on("keypress", "form", function(event) { $(document).on("keypress", ":input:not(textarea):not([type=submit])", function(event) {
return event.keyCode != 13; if (event.keyCode == 13) {
event.preventDefault();
}
}); });
// laydate 时间控件绑定 // laydate 时间控件绑定

@ -289,7 +289,7 @@ var table = {
_value = _value.replace(/\'/g,"'"); _value = _value.replace(/\'/g,"'");
_value = _value.replace(/\"/g,"""); _value = _value.replace(/\"/g,""");
var actions = []; var actions = [];
actions.push($.common.sprintf('<input id="tooltip-show" style="opacity: 0;position: absolute;z-index:-1" type="text" value="%s"/>', _value)); actions.push($.common.sprintf('<input style="opacity: 0;position: absolute;z-index:-1" type="text" value="%s"/>', _value));
actions.push($.common.sprintf('<a href="###" class="tooltip-show" data-toggle="tooltip" data-target="%s" title="%s">%s</a>', _target, _value, _text)); actions.push($.common.sprintf('<a href="###" class="tooltip-show" data-toggle="tooltip" data-target="%s" title="%s">%s</a>', _target, _value, _text));
return actions.join(''); return actions.join('');
} else { } else {

Loading…
Cancel
Save