From: Alan Knowles Date: Fri, 14 Jan 2011 07:42:18 +0000 (+0800) Subject: Pman.Tab.AdminContactsGroup.js X-Git-Url: http://git.roojs.org/?p=Pman.Admin;a=commitdiff_plain;h=f61a9578566b92cf3b77d062aa4301544844bf35 Pman.Tab.AdminContactsGroup.js --- diff --git a/Pman.Tab.AdminContactsGroup.js b/Pman.Tab.AdminContactsGroup.js index 29febb8..642ad62 100644 --- a/Pman.Tab.AdminContactsGroup.js +++ b/Pman.Tab.AdminContactsGroup.js @@ -197,32 +197,32 @@ Pman.Tab.AdminContactsGroup = new Roo.util.Observable({ cls : 'x-btn-text-icon', text : "Add", icon : Roo.rootURL + 'images/default/dd/drop-add.gif' + }, + { + xtype: 'Item', + xns: Roo.menu, + listeners : { + click : function() + { + var s = _this.grid.getSelectionModel().getSelections(); + if (!s.length || (s.length > 1)) { + Roo.MessageBox.alert("Error", s.length ? "Select only one Row" : "Select a Row"); + return; + } + if (!_this.dialog) return; + _this.dialog.show(s[0].data, function() { + _this.grid.footer.onClick('first'); + }); + + } + }, + cls : 'x-btn-text-icon', + text : "Edit", + icon : Roo.rootURL + 'images/default/tree/leaf.gif' } ] } }, - { - xtype: 'Item', - xns: Roo.menu, - listeners : { - click : function() - { - var s = _this.grid.getSelectionModel().getSelections(); - if (!s.length || (s.length > 1)) { - Roo.MessageBox.alert("Error", s.length ? "Select only one Row" : "Select a Row"); - return; - } - if (!_this.dialog) return; - _this.dialog.show(s[0].data, function() { - _this.grid.footer.onClick('first'); - }); - - } - }, - cls : 'x-btn-text-icon', - text : "Edit", - icon : Roo.rootURL + 'images/default/tree/leaf.gif' - }, { xtype: 'Button', xns: Roo.Toolbar,