Pman.Dialog.AdminCoreEnum.bjs
[Pman.Admin] / Pman.Dialog.AdminCoreEnum.bjs
index 544c866..0f96de9 100644 (file)
@@ -1,14 +1,14 @@
 {
-    "id": "roo-file-313",
+    "id": "roo-file-180",
     "name": "Pman.Dialog.AdminCoreEnum",
     "parent": "",
     "title": "",
-    "path": "/home/chris/gitlive/Pman.Admin/Pman.Dialog.AdminCoreEnum.bjs",
+    "path": "/home/alan/gitlive/Pman.Admin/Pman.Dialog.AdminCoreEnum.bjs",
     "items": [
         {
-            "height": 300,
+            "height": 400,
             "title": "Pulldown Options",
-            "width": 500,
+            "width": 950,
             "xtype": "LayoutDialog",
             "|xns": "Roo",
             "items": [
                 },
                 {
                     "listeners": {
-                        "|activate": "function() {\n    _this.panel = this;\n    if (_this.grid) {\n        _this.grid.footer.onClick('first');\n    }\n}"
+                        "|activate": "function() {\n    _this.panel = this;\n    if (_this.grid) {\n     //   _this.grid.footer.onClick('first');\n    }\n}"
                     },
                     "background": false,
-                    "fitContainer": false,
-                    "fitToframe": false,
+                    "fitContainer": true,
+                    "fitToframe": true,
                     "region": "center",
                     "tableName": "core_enum",
                     "title": "Pulldown Options",
@@ -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}"