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

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

index 43ad705..a91a876 100644 (file)
         },
         {
          "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{\nif (!_this.dialog) { return; }\n    _this.dialog.show( { id : 0 } , function() {\n        _this.grid.footer.onClick('first');\n   }); \n}\n"
          },
          "text" : "Add",
          "xtype" : "Button",
index 364889e..973030a 100644 (file)
@@ -221,7 +221,7 @@ Pman.Tab.MTrackMilestone = 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');
             });