X-Git-Url: http://git.roojs.org/?p=Pman.Admin;a=blobdiff_plain;f=Pman.Tab.AdminCompanies.js;h=e512d8b6c0bb23e6849c89afdb7062f5b76c44c9;hp=37f129b0a001ad0b4a71ff1c92233328a99f8182;hb=8bded7eab2f8a199d1c2cbafa5ace85038076d33;hpb=4a751f266babc0a71a67bb0fc0dc3317881643b6 diff --git a/Pman.Tab.AdminCompanies.js b/Pman.Tab.AdminCompanies.js index 37f129b..e512d8b 100644 --- a/Pman.Tab.AdminCompanies.js +++ b/Pman.Tab.AdminCompanies.js @@ -97,7 +97,9 @@ Pman.Tab.AdminCompanies = new Roo.XComponent({ }, rowdblclick : function (_self, rowIndex, e) { - if (!_this.dialog) return; + if (!_this.dialog) { + return; + } _this.dialog.show( this.getDataSource().getAt(rowIndex).data, function() { _this.grid.footer.onClick('first'); }); @@ -182,7 +184,9 @@ Pman.Tab.AdminCompanies = 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'); }); @@ -204,7 +208,9 @@ Pman.Tab.AdminCompanies = 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'); });