Pman.Tab.AdminEnum.bjs
authorMichael <michael@roojs.com>
Mon, 9 Feb 2015 04:58:38 +0000 (12:58 +0800)
committerMichael <michael@roojs.com>
Mon, 9 Feb 2015 04:58:38 +0000 (12:58 +0800)
Pman.Tab.AdminEnum.js

Pman.Tab.AdminEnum.bjs
Pman.Tab.AdminEnum.js

index e6057c7..9042c6b 100644 (file)
                             "items" : [
                                 {
                                     "listeners" : {
-                                        "keypress" : "function (e)\n{\n    if(e.keyCode == 13){\n        \n    }\n}",
+                                        "keypress" : "function (e)\n{\n    if(e.keyCode == 13){\n        _this.grid.footer.onClick('first');\n    }\n}",
                                         "beforeedit" : "function (e)\n{\n    if(e.field == 'name' && e.record.data.is_system_enum*1 == 1){\n        return false;\n    }\n}",
                                         "|render" : "function() \n{\n    _this.grid = this; \n    //_this.dialog = Pman.Dialog.FILL_IN\n    if (_this.panel.active) {\n       this.footer.onClick('first');\n    }\n}",
                                         "cellclick" : "function (_self, rowIndex, columnIndex, e)\n{\n\n        var di = this.colModel.getDataIndex(columnIndex);\n        if (di != 'active') {\n            return;\n        }\n         \n        var rec = _this.grid.ds.getAt(rowIndex);\n        \n        rec.set('active', rec.data.active ? 0 : 1);\n        rec.commit();\n         \n        \n}",
index 8a6779b..142f98d 100644 (file)
@@ -693,7 +693,7 @@ Pman.Tab.AdminEnum = new Roo.XComponent({
                                keypress : function (e)
                                   {
                                       if(e.keyCode == 13){
-                                          
+                                          _this.grid.footer.onClick('first');
                                       }
                                   },
                                beforeedit : function (e)