fix 'Optional parameter declared before required parameter is implicitly treated...
[Pman.Cms] / Pman.Tab.CmsCategoryType.js
index 90ff091..e9f6d13 100644 (file)
@@ -100,7 +100,9 @@ Pman.Tab.CmsCategoryType = 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');
             }); 
@@ -122,7 +124,9 @@ Pman.Tab.CmsCategoryType = 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');
              });