From: Alan Knowles Date: Tue, 15 Oct 2013 07:33:19 +0000 (+0800) Subject: Pman.Dialog.AdminCoreEnum.bjs X-Git-Url: http://git.roojs.org/?p=Pman.Admin;a=commitdiff_plain;h=4bb83fe222a214bacc9a99f5ca795d68b4a0bc6c Pman.Dialog.AdminCoreEnum.bjs Pman.Dialog.AdminCoreEnum.js --- diff --git a/Pman.Dialog.AdminCoreEnum.bjs b/Pman.Dialog.AdminCoreEnum.bjs index e1bdd2c..af5fd26 100644 --- a/Pman.Dialog.AdminCoreEnum.bjs +++ b/Pman.Dialog.AdminCoreEnum.bjs @@ -215,7 +215,7 @@ }, { "listeners": { - "click": "function (_self, e)\n{\n var sel = _this.grid.selModel.getSelectedCell();\n if (!sel && _this.callback) {\n Roo.MessageBox.alert(\"Error\", \"Select an item\");\n return;\n }\n \n\n if (_this.callback) {\n var rec = _this.grid.getAt(sel[0]);\n _this.callback(rec.data);\n }\n _this.dialog.hide();\n}" + "click": "function (_self, e)\n{\n var sel = _this.grid.selModel.getSelectedCell();\n if (!sel && _this.callback) {\n Roo.MessageBox.alert(\"Error\", \"Select an item\");\n return;\n }\n \n\n if (_this.callback) {\n var rec = _this.grid.ds.getAt(sel[0]);\n _this.callback(rec.data);\n }\n _this.dialog.hide();\n}" }, "*prop": "buttons[]", "text": "OK", diff --git a/Pman.Dialog.AdminCoreEnum.js b/Pman.Dialog.AdminCoreEnum.js index b71be1b..1b3446d 100644 --- a/Pman.Dialog.AdminCoreEnum.js +++ b/Pman.Dialog.AdminCoreEnum.js @@ -350,7 +350,7 @@ Pman.Dialog.AdminCoreEnum = { if (_this.callback) { - var rec = _this.grid.getAt(sel[0]); + var rec = _this.grid.ds.getAt(sel[0]); _this.callback(rec.data); } _this.dialog.hide();