Pman.Tab.AdminEnums.bjs
authorChris <chris@roojs.com>
Wed, 10 Jul 2013 11:22:22 +0000 (19:22 +0800)
committerChris <chris@roojs.com>
Wed, 10 Jul 2013 11:22:22 +0000 (19:22 +0800)
Pman.Tab.AdminEnums.js

Pman.Tab.AdminEnums.bjs
Pman.Tab.AdminEnums.js

index d8d8d6d..6adcf67 100644 (file)
@@ -23,7 +23,7 @@
                         "|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 (_self, rowIndex, columnIndex, e)\n{\n    \n    var di = this.colModel.getDataIndex(columnIndex);\n    var rec = _this.grid.ds.getAt(rowIndex);\n    Roo.log(di)\n    Roo.log(rec);\n    if(di == 'name' && rec.data.is_system_enum*1 == 1){\n        return;\n    }\n}"
+                        "beforeedit": "function (_self, rowIndex, columnIndex, e)\n{\n    Roo.log(_self)\n    Roo.log(rowIndex)\n    Roo.log(columnIndex)\n    Roo.log(e)\n    var di = this.colModel.getDataIndex(columnIndex);\n    var rec = _this.grid.ds.getAt(rowIndex);\n    Roo.log(di)\n    Roo.log(rec);\n    if(di == 'name' && rec.data.is_system_enum*1 == 1){\n        return;\n    }\n}"
                     },
                     "*prop": "grid",
                     "autoExpandColumn": "display_name",
index cf74d89..2c52ab4 100644 (file)
@@ -64,7 +64,10 @@ Pman.Tab.AdminEnums = new Roo.XComponent({
                     },
                     beforeedit : function (_self, rowIndex, columnIndex, e)
                     {
-                        
+                        Roo.log(_self)
+                        Roo.log(rowIndex)
+                        Roo.log(columnIndex)
+                        Roo.log(e)
                         var di = this.colModel.getDataIndex(columnIndex);
                         var rec = _this.grid.ds.getAt(rowIndex);
                         Roo.log(di)