Pman.Tab.AdminContactsGroup.bjs
authorAlan Knowles <alan@akbkhome.com>
Fri, 14 Jan 2011 07:42:18 +0000 (15:42 +0800)
committerAlan Knowles <alan@akbkhome.com>
Fri, 14 Jan 2011 07:42:18 +0000 (15:42 +0800)
Pman.Tab.AdminContactsGroup.bjs

index 5fc3f7e..10223d1 100644 (file)
                                                     "xtype": "Item",
                                                     "|icon": "Roo.rootURL + 'images/default/dd/drop-add.gif'",
                                                     "|xns": "Roo.menu"
+                                                },
+                                                {
+                                                    "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    if (!_this.dialog) return;\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": "Item",
+                                                    "|icon": "Roo.rootURL + 'images/default/tree/leaf.gif'",
+                                                    "|xns": "Roo.menu"
                                                 }
                                             ]
                                         }
                                     ]
                                 },
-                                {
-                                    "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    if (!_this.dialog) return;\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": "Item",
-                                    "|icon": "Roo.rootURL + 'images/default/tree/leaf.gif'",
-                                    "|xns": "Roo.menu"
-                                },
                                 {
                                     "text": "Delete",
                                     "cls": "x-btn-text-icon",