Pman.Tab.BuilderDatabase.bjs
authoredward <edward@roojs.com>
Mon, 21 Nov 2016 07:54:59 +0000 (15:54 +0800)
committeredward <edward@roojs.com>
Mon, 21 Nov 2016 07:54:59 +0000 (15:54 +0800)
Pman.Tab.BuilderDatabase.js

Pman.Tab.BuilderDatabase.bjs
Pman.Tab.BuilderDatabase.js

index a224c9f..f4cfcaf 100644 (file)
        "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",
+          "|rowdblclick" : "function (_self, rowIndex, e)\n{\n    if (!_this.dialog) {\n        return;\n    }\n    \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}"
          },
          "autoExpandColumn" : "table",
index bc1347d..71f3fd5 100644 (file)
@@ -409,7 +409,10 @@ Pman.Tab.BuilderDatabase = new Roo.XComponent({
          },
         rowdblclick : function (_self, rowIndex, e)
          {
-             if (!_this.dialog) return;
+             if (!_this.dialog) {
+                 return;
+             }
+             
              _this.dialog.show( this.getDataSource().getAt(rowIndex), function() {
                  _this.grid.footer.onClick('first');
              });