Pman.Tab.MTrackRepos.bjs
authorAlan Knowles <alan@roojs.com>
Thu, 14 Jan 2021 07:19:18 +0000 (15:19 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 14 Jan 2021 07:19:18 +0000 (15:19 +0800)
Pman.Tab.MTrackRepos.js

Pman.Tab.MTrackRepos.bjs
Pman.Tab.MTrackRepos.js

index d4318bb..5e01808 100644 (file)
@@ -84,7 +84,7 @@
        "items" : [
         {
          "listeners" : {
-          "|click" : "function()\n{\n    if (!_this.dialog) return;\n    _this.dialog.show( { id : 0 } , function() {\n        _this.grid.footer.onClick('first');\n   }); \n}\n"
+          "|click" : "function()\n{\n    if (!_this.dialog) { return; }\n    _this.dialog.show( { id : 0 } , function() {\n        _this.grid.footer.onClick('first');\n   }); \n}\n"
          },
          "text" : "Add",
          "xtype" : "Button",
@@ -94,7 +94,7 @@
         },
         {
          "listeners" : {
-          "|click" : "function()\n{\n    var s = _this.grid.getSelectionModel().getSelections();\n    if (!s.length || (s.length > 1))  {\n        Roo.MessageBox.alert(\"Error\", s.length ? \"Select only one Row\" : \"Select a Row\");\n        return;\n    }\n    if (!_this.dialog) return;\n    _this.dialog.show(s[0].data, function() {\n        _this.grid.footer.onClick('reload');\n    }); \n    \n}\n"
+          "|click" : "function()\n{\n    var s = _this.grid.getSelectionModel().getSelections();\n    if (!s.length || (s.length > 1))  {\n        Roo.MessageBox.alert(\"Error\", s.length ? \"Select only one Row\" : \"Select a Row\");\n        return;\n    }\n    if (!_this.dialog) { return; }\n    _this.dialog.show(s[0].data, function() {\n        _this.grid.footer.onClick('reload');\n    }); \n    \n}\n"
          },
          "text" : "Edit",
          "xtype" : "Button",
index f93070e..60e46ec 100644 (file)
@@ -94,7 +94,7 @@ Pman.Tab.MTrackRepos = new Roo.XComponent({
        listeners : {
         click : function()
          {
-             if (!_this.dialog) return;
+             if (!_this.dialog) { return; }
              _this.dialog.show( { id : 0 } , function() {
                  _this.grid.footer.onClick('first');
             }); 
@@ -116,7 +116,7 @@ Pman.Tab.MTrackRepos = new Roo.XComponent({
                  Roo.MessageBox.alert("Error", s.length ? "Select only one Row" : "Select a Row");
                  return;
              }
-             if (!_this.dialog) return;
+             if (!_this.dialog) { return; }
              _this.dialog.show(s[0].data, function() {
                  _this.grid.footer.onClick('reload');
              });