Pman.Dialog.AdminCoreEnum.js
"|xns": "Roo"
},
{
+ "listeners": {
+ "click": "function (_self, e)\n{\n var sel = _this.grid.selModel.getSelectedCell();\n if (!sel) {\n Roo.MesssageBox.alert(\"Error\", \"Select an item\");\n return;\n }\n var rec = _this.grid.getAt(sel[0]);\n if (_this.callback) {\n _this.callback(rec.data);\n }\n}"
+ },
"*prop": "buttons[]",
"text": "OK",
"xtype": "Button",
{
xtype: 'Button',
xns: Roo,
+ listeners : {
+ click : function (_self, e)
+ {
+ var sel = _this.grid.selModel.getSelectedCell();
+ if (!sel) {
+ Roo.MesssageBox.alert("Error", "Select an item");
+ return;
+ }
+ var rec = _this.grid.getAt(sel[0]);
+ if (_this.callback) {
+ _this.callback(rec.data);
+ }
+ }
+ },
text : "OK"
}
]