From: Alan Knowles Date: Wed, 16 May 2012 10:17:40 +0000 (+0800) Subject: Pman.Dialog.CoreNotifyRecur.bjs X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=02b135b0b2d7ea26cc276c28502fa451ef6c0894 Pman.Dialog.CoreNotifyRecur.bjs Pman.Dialog.CoreNotifyRecur.js --- 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); + + }