|
@@ -355,6 +355,13 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|
},
|
|
},
|
|
api: {
|
|
api: {
|
|
bindevent1: function () {
|
|
bindevent1: function () {
|
|
|
|
+ //屏蔽回车键
|
|
|
|
+ $(window).keydown( function(e) {
|
|
|
|
+ var key = window.event?e.keyCode:e.which;
|
|
|
|
+ if(key.toString() == "13"){
|
|
|
|
+ return false;
|
|
|
|
+ }
|
|
|
|
+ });
|
|
Form.api.bindevent($("form[role=form]"));
|
|
Form.api.bindevent($("form[role=form]"));
|
|
},
|
|
},
|
|
initSubTable: function (index, row, $detail,parent_table) {
|
|
initSubTable: function (index, row, $detail,parent_table) {
|