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

Pman.Tab.MTrackMilestone.bjs
Pman.Tab.MTrackMilestone.js

index d98169c..43ad705 100644 (file)
         },
         {
          "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('first');\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('first');\n    }); \n    \n}\n"
          },
          "text" : "Edit",
          "xtype" : "Button",
index f2589b1..364889e 100644 (file)
@@ -243,7 +243,7 @@ Pman.Tab.MTrackMilestone = 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('first');
              });