"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}",
"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 if(di == name && rec.data.is_system_enum*1 == 1){\n return;\n }\n \n rec.set('active', rec.data.active ? 0 : 1);\n rec.commit();\n \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 if(di == name && rec.data.is_system_enum*1 == 1){\n return;\n }\n \n rec.set('active', rec.data.active ? 0 : 1);\n rec.commit();\n \n \n}"
},
"*prop": "grid",
"autoExpandColumn": "display_name",
cellclick : function (_self, rowIndex, columnIndex, e)
{
- var di = this.colModel.getDataIndex(columnIndex);
- if (di != 'active') {
- return;
- }
-
- var rec = _this.grid.ds.getAt(rowIndex);
-
- if(di == name && rec.data.is_system_enum*1 == 1){
- return;
- }
-
- rec.set('active', rec.data.active ? 0 : 1);
- rec.commit();
+ var di = this.colModel.getDataIndex(columnIndex);
+ if (di != 'active') {
+ return;
+ }
+
+ var rec = _this.grid.ds.getAt(rowIndex);
+
+ if(di == name && rec.data.is_system_enum*1 == 1){
+ return;
+ }
+
+ rec.set('active', rec.data.active ? 0 : 1);
+ rec.commit();
}