Pman.Dialog.AdminCoreEnum.bjs
authorAlan Knowles <alan@roojs.com>
Tue, 15 Oct 2013 07:16:17 +0000 (15:16 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 15 Oct 2013 07:16:17 +0000 (15:16 +0800)
Pman.Dialog.AdminCoreEnum.js

Pman.Dialog.AdminCoreEnum.bjs
Pman.Dialog.AdminCoreEnum.js

index 3d80980..0f96de9 100644 (file)
@@ -32,7 +32,7 @@
                     "items": [
                         {
                             "listeners": {
-                                "|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}",
+                                "|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}",
                                 "afteredit": "function (e)\n{\n   e.record.commit();     \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}",
                                 "beforeedit": "function (e)\n{\n    if(e.field == 'name' && e.record.data.is_system_enum*1 == 1){\n        return false;\n    }\n}"
index 0557cce..a258161 100644 (file)
@@ -60,7 +60,7 @@ Pman.Dialog.AdminCoreEnum = {
                                 _this.grid = this; 
                                 //_this.dialog = Pman.Dialog.FILL_IN
                                 if (_this.panel.active) {
-                                   this.footer.onClick('first');
+                               //    this.footer.onClick('first');
                                 }
                             },
                             afteredit : function (e)