Pman.Dialog.XtupleSalesProductList.js
},
{
"listeners": {
- "click": "function (_self, e)\n{\n\n if(!_this.callback){\n _this.dialog.hide();\n return;\n }\n var sels = _this.grid.selModel.getSelections();\n if (!sels) {\n Roo.MessageBox.alert(\"Error\", \"Select some items\");\n }\n \n _this.callback.call(_this,sels);\n}",
+ "click": "function (_self, e)\n{\n\n if(!_this.callback){\n _this.dialog.hide();\n return;\n }\n var sels = _this.grid.selModel.getSelections();\n if (!sels.length) {\n Roo.MessageBox.alert(\"Error\", \"Select some items\");\n }\n _this.dialog.hide();\n _this.callback.call(_this,sels);\n}",
"render": "function (_self)\n{\n _this.addSelected = _self;\n}"
},
"*prop": "buttons[]",
return;
}
var sels = _this.grid.selModel.getSelections();
- if (!sels) {
+ if (!sels.length) {
Roo.MessageBox.alert("Error", "Select some items");
}
-
+ _this.dialog.hide();
_this.callback.call(_this,sels);
},
render : function (_self)