From 02b135b0b2d7ea26cc276c28502fa451ef6c0894 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Wed, 16 May 2012 18:17:40 +0800 Subject: [PATCH] Pman.Dialog.CoreNotifyRecur.bjs Pman.Dialog.CoreNotifyRecur.js --- Pman.Dialog.CoreNotifyRecur.bjs | 2 +- Pman.Dialog.CoreNotifyRecur.js | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/Pman.Dialog.CoreNotifyRecur.bjs b/Pman.Dialog.CoreNotifyRecur.bjs index e3f52205..354c0535 100644 --- a/Pman.Dialog.CoreNotifyRecur.bjs +++ b/Pman.Dialog.CoreNotifyRecur.bjs @@ -206,7 +206,7 @@ "header": "at Hour(s)", "width": 250, "xtype": "ColumnModel", - "|renderer": "function(v,x,r) { \n \n Roo.log(x);\n if (v.length) {\n var cm = _this.grid.colModel;\n \n cm.getColumnByDataIndex('xx');\n \n }\n \n return String.format('{0}', r.data.freq_hour_name || v); \n \n}", + "|renderer": "function(v,x,r) { \n \n Roo.log(x);\n if (v.length) {\n var cm = _this.grid.colModel;\n \n var ci = cm.getColumnByDataIndex(this.dataIndex);\n var ce = cm.getCellEditor(ci);\n ce.field.setValue(v);\n return String.format('{0}',ce.field.el.value);\n\n \n \n }\n \n return String.format('{0}', r.data.freq_hour_name || v); \n \n}", "|xns": "Roo.grid", "items": [ { diff --git a/Pman.Dialog.CoreNotifyRecur.js b/Pman.Dialog.CoreNotifyRecur.js index 962b52f9..bb135954 100644 --- a/Pman.Dialog.CoreNotifyRecur.js +++ b/Pman.Dialog.CoreNotifyRecur.js @@ -337,7 +337,12 @@ Pman.Dialog.CoreNotifyRecur = { if (v.length) { var cm = _this.grid.colModel; - cm.getColumnByDataIndex('xx'); + var ci = cm.getColumnByDataIndex(this.dataIndex); + var ce = cm.getCellEditor(ci); + ce.field.setValue(v); + return String.format('{0}',ce.field.el.value); + + } -- 2.39.2