From: Chris Date: Thu, 13 Sep 2012 05:03:51 +0000 (+0800) Subject: Pman.Tab.AdminContactsGroupRight.bjs X-Git-Url: http://git.roojs.org/?p=Pman.Admin;a=commitdiff_plain;h=05c28c30dd5154af2fa8a1046e26129914ecb785 Pman.Tab.AdminContactsGroupRight.bjs Pman.Tab.AdminContactsGroupRight.js --- diff --git a/Pman.Tab.AdminContactsGroupRight.bjs b/Pman.Tab.AdminContactsGroupRight.bjs index 15bc41f..5c372b5 100644 --- a/Pman.Tab.AdminContactsGroupRight.bjs +++ b/Pman.Tab.AdminContactsGroupRight.bjs @@ -152,67 +152,9 @@ } ] }, - { - "listeners": { - "|click": "function (_self, e)\n{\n_this.grid.footer.onClick('first');\n}" - }, - "cls": "x-btn-icon", - "xtype": "Button", - "|icon": "rootURL + '/Pman/templates/images/search.gif'", - "|xns": "Roo.Toolbar" - }, - { - "listeners": { - "|click": "function (_self, e)\n{\n_this.searchBox.setValue('');\n _this.grid.footer.onClick('first');\n}" - }, - "cls": "x-btn-icon", - "xtype": "Button", - "|icon": "rootURL + '/Pman/templates/images/edit-clear.gif'", - "|xns": "Roo.Toolbar" - }, - { - "listeners": { - "toggle": "function (_self, pressed)\n{\n _this.grid.footer.onClick('first');\n this.setText(pressed ? \"Show Active\" : \"Show Removed\");\n \n \n}", - "render": "function (_self)\n{\n _this.activeButton = _self;\n}" - }, - "enableToggle": true, - "text": "Show Removed", - "xtype": "Button", - "|xns": "Roo.Toolbar" - }, - { - "listeners": { - "toggle": "function (_self, pressed)\n{\n _this.grid.footer.onClick('first');\n this.setText(pressed ? \"Show Company\" : \"Show No Company\");\n \n \n}", - "render": "function (_self)\n{\n _this.active_company_button = _self;\n}" - }, - "enableToggle": true, - "text": "Show No Company", - "xtype": "Button", - "|xns": "Roo.Toolbar" - }, { "|xns": "Roo.Toolbar", "xtype": "Fill" - }, - { - "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 \n _this.dialog.show(s[0].data, function() {\n _this.grid.footer.onClick('first');\n }); \n \n}\n" - }, - "cls": "x-btn-text-icon", - "text": "Edit", - "xtype": "Button", - "|icon": "Roo.rootURL + 'images/default/tree/leaf.gif'", - "|xns": "Roo.Toolbar" - }, - { - "listeners": { - "|click": "function()\n{\n Pman.genericDelete(_this, 'Person'); \n}\n " - }, - "cls": "x-btn-text-icon", - "text": "Delete", - "xtype": "Button", - "|icon": "rootURL + '/Pman/templates/images/trash.gif'", - "|xns": "Roo.Toolbar" } ] }, diff --git a/Pman.Tab.AdminContactsGroupRight.js b/Pman.Tab.AdminContactsGroupRight.js index 5b8f34e..c5ce75c 100644 --- a/Pman.Tab.AdminContactsGroupRight.js +++ b/Pman.Tab.AdminContactsGroupRight.js @@ -554,107 +554,9 @@ Pman.Tab.AdminContactsGroupRight = new Roo.XComponent({ } } }, - { - xtype: 'Button', - xns: Roo.Toolbar, - listeners : { - click : function (_self, e) - { - _this.grid.footer.onClick('first'); - } - }, - cls : 'x-btn-icon', - icon : rootURL + '/Pman/templates/images/search.gif' - }, - { - xtype: 'Button', - xns: Roo.Toolbar, - listeners : { - click : function (_self, e) - { - _this.searchBox.setValue(''); - _this.grid.footer.onClick('first'); - } - }, - cls : 'x-btn-icon', - icon : rootURL + '/Pman/templates/images/edit-clear.gif' - }, - { - xtype: 'Button', - xns: Roo.Toolbar, - listeners : { - toggle : function (_self, pressed) - { - _this.grid.footer.onClick('first'); - this.setText(pressed ? "Show Active" : "Show Removed"); - - - }, - render : function (_self) - { - _this.activeButton = _self; - } - }, - enableToggle : true, - text : "Show Removed" - }, - { - xtype: 'Button', - xns: Roo.Toolbar, - listeners : { - toggle : function (_self, pressed) - { - _this.grid.footer.onClick('first'); - this.setText(pressed ? "Show Company" : "Show No Company"); - - - }, - render : function (_self) - { - _this.active_company_button = _self; - } - }, - enableToggle : true, - text : "Show No Company" - }, { xtype: 'Fill', xns: Roo.Toolbar - }, - { - xtype: 'Button', - xns: Roo.Toolbar, - 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; - } - - _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, - listeners : { - click : function() - { - Pman.genericDelete(_this, 'Person'); - } - }, - cls : 'x-btn-text-icon', - text : "Delete", - icon : rootURL + '/Pman/templates/images/trash.gif' } ] },