From: Alan Knowles Date: Wed, 16 May 2012 10:18:31 +0000 (+0800) Subject: Pman.Dialog.CoreNotifyRecur.bjs X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=749aba055a82fa758dd3db7d414421260f65dd93 Pman.Dialog.CoreNotifyRecur.bjs Pman.Dialog.CoreNotifyRecur.js --- diff --git a/Pman.Dialog.CoreNotifyRecur.bjs b/Pman.Dialog.CoreNotifyRecur.bjs index 354c0535..af525084 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 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}", + "|renderer": "function(v,x,r) { \n \n Roo.log(x);\n if (v.length) {\n var cm = _this.grid.colModel;\n Roo.log(this);\n var ci = cm.getColumnByDataIndex(this.dataIndex);\n Roo.log(ci);\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 bb135954..63bbf171 100644 --- a/Pman.Dialog.CoreNotifyRecur.js +++ b/Pman.Dialog.CoreNotifyRecur.js @@ -336,8 +336,9 @@ Pman.Dialog.CoreNotifyRecur = { Roo.log(x); if (v.length) { var cm = _this.grid.colModel; - + Roo.log(this); var ci = cm.getColumnByDataIndex(this.dataIndex); + Roo.log(ci); var ce = cm.getCellEditor(ci); ce.field.setValue(v); return String.format('{0}',ce.field.el.value);