resources/Editors/Editor.Roo.grid.Grid.bjs
authorAlan Knowles <alan@roojs.com>
Fri, 17 Apr 2015 01:41:47 +0000 (09:41 +0800)
committerAlan Knowles <alan@roojs.com>
Fri, 17 Apr 2015 01:41:47 +0000 (09:41 +0800)
resources/Editors/Editor.Roo.grid.Grid.js

resources/Editors/Editor.Roo.grid.Grid.bjs
resources/Editors/Editor.Roo.grid.Grid.js

index c624bb4..1bb1c83 100644 (file)
@@ -33,8 +33,8 @@
    "items" : [
     {
      "listeners" : {
-      "|rowdblclick" : "function (_self, rowIndex, e)\n{\n    if (!_this.dialog) return;\n    _this.dialog.show( this.getDataSource().getAt(rowIndex), function() {\n        _this.grid.footer.onClick('first');\n    }); \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}",
+      "|rowdblclick" : "function (_self, rowIndex, e)\n{\n    if (!_this.dialog) return;\n  \n}\n",
+      "|render" : "function() \n{\n    _this.grid = this; \n    //_this.dialog = Pman.Dialog.FILL_IN\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 * 1 ? 0 : 1);\n        rec.commit();\n         \n        \n}"
      },
      "Number clicksToEdit" : 1,
index 2c3ea1d..420e5b3 100644 (file)
@@ -171,16 +171,12 @@ Editor.Roo.grid.Grid = new Roo.XComponent({
       {
           _this.grid = this; 
           //_this.dialog = Pman.Dialog.FILL_IN
-          if (_this.panel.active) {
-             this.footer.onClick('first');
-          }
+      
       },
      rowdblclick : function (_self, rowIndex, e)
       {
           if (!_this.dialog) return;
-          _this.dialog.show( this.getDataSource().getAt(rowIndex), function() {
-              _this.grid.footer.onClick('first');
-          }); 
+        
       }
     },
     items : [