Pman.Tab.XtupleReports.bjs
authorAlan Knowles <alan@roojs.com>
Wed, 18 Dec 2013 12:05:26 +0000 (20:05 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 18 Dec 2013 12:05:26 +0000 (20:05 +0800)
Pman.Tab.XtupleReports.js

Pman.Tab.XtupleReports.bjs
Pman.Tab.XtupleReports.js

index 390ccc0..18c8c23 100644 (file)
                                                     },
                                                     "|xns": "Roo.Toolbar"
                                                 },
-                                                {
-                                                    "text": "Edit",
-                                                    "xtype": "Button",
-                                                    "cls": "x-btn-text-icon",
-                                                    "|icon": "Roo.rootURL + 'images/default/tree/leaf.gif'",
-                                                    "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"
-                                                    },
-                                                    "|xns": "Roo.Toolbar"
-                                                },
                                                 {
                                                     "text": "Delete",
                                                     "cls": "x-btn-text-icon",
index 236128b..34b8a37 100644 (file)
@@ -139,28 +139,6 @@ Pman.Tab.XtupleReports = new Roo.XComponent({
                                             }
                                         }
                                     },
-                                    {
-                                        xtype: 'Button',
-                                        xns: Roo.Toolbar,
-                                        text : "Edit",
-                                        cls : 'x-btn-text-icon',
-                                        icon : Roo.rootURL + 'images/default/tree/leaf.gif',
-                                        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');
-                                                }); 
-                                                
-                                            }
-                                        }
-                                    },
                                     {
                                         xtype: 'Button',
                                         xns: Roo.Toolbar,