Pman.Tab.XtupleReports.js
},
{
"listeners": {
- "click": "function (_self, e)\n{\n \n var sel = _this.grid.selModel.getSelected();\n if (!sel) {\n Roo.MessageBox.alert(\"Error\", \"Select a report\");\n return;\n }\n \n Pman.Dialog.Image.show(\n {\n _url : baseURL+'/Xtuple/Report',\n params : {\n on_id : sel.data.report_id\n }\n \n \n },\n function (data) {\n Roo.MessageBox.alert(\"Notice\", \"Updated\");\n _this.grid.footer.onClick('refresh');\n }\n );\n}"
+ "click": "function (_self, e)\n{\n \n var sel = _this.grid.selModel.getSelected();\n if (!sel) {\n Roo.MessageBox.alert(\"Error\", \"Select a report\");\n return;\n }\n \n Pman.Dialog.Image.show(\n {\n _url : baseURL+'/Xtuple/Report',\n params : {\n on_id : sel.data.report_id\n }\n \n },\n function (data) {\n Roo.MessageBox.alert(\"Notice\", \"Updated\");\n _this.grid.footer.onClick('refresh');\n }\n );\n}"
},
"text": "Upload New version",
"xtype": "Button",
on_id : sel.data.report_id
}
-
},
function (data) {
Roo.MessageBox.alert("Notice", "Updated");