From: Alan Knowles Date: Wed, 16 May 2012 09:26:32 +0000 (+0800) Subject: Pman.Dialog.CoreNotifyRecur.bjs X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=3118081efdd8897538f8d5957a065f82e631ac93 Pman.Dialog.CoreNotifyRecur.bjs Pman.Dialog.CoreNotifyRecur.js --- diff --git a/Pman.Dialog.CoreNotifyRecur.bjs b/Pman.Dialog.CoreNotifyRecur.bjs index bb82fdcd..1dcad3fd 100644 --- a/Pman.Dialog.CoreNotifyRecur.bjs +++ b/Pman.Dialog.CoreNotifyRecur.bjs @@ -161,51 +161,6 @@ } ] }, - { - "*prop": "colModel[]", - "dataIndex": "freq", - "header": "Frequency", - "width": 70, - "xtype": "ColumnModel", - "|renderer": "function(v,x,r) { \n\n Roo.log(this);\n var cm = _this.grid.colModel;\n var ix = cm.findColumnIndex('freq');\n var ce = cm.getCellEditor(ix)\n var matches = ce.field.store.query('code',v);\n if (!matches.length) {\n return '';\n }\n return String.format('{0}', matches.first().data.title);\n }", - "|xns": "Roo.grid", - "items": [ - { - "|xns": "Roo.grid", - "xtype": "GridEditor", - "*prop": "editor", - "items": [ - { - "*prop": "field", - "allowBlank": false, - "displayField": "title", - "editable": false, - "fieldLabel": "Country", - "hiddenName": "freq", - "listWidth": 200, - "mode": "local", - "name": "freq_name", - "tpl": "
{title}
", - "triggerAction": "all", - "valueField": "code", - "width": 200, - "xtype": "ComboBox", - "|xns": "Roo.form", - "items": [ - { - "*prop": "store", - "xtype": "SimpleStore", - "|data": "[ \n [ 'HOURLY' , 'Hourly at' ] ,\n [ 'DAILY' , 'Daily at'] ,\n [ 'WEEKLY' , 'Weekly at'] ,\n [ 'Montly' , 'Montly at'] \n]", - "|fields": "['code', 'title']", - "|sortInfo": "{ field : 'title', direction: 'ASC' }", - "|xns": "Roo.data" - } - ] - } - ] - } - ] - }, { "*prop": "colModel[]", "dataIndex": "freq_day", diff --git a/Pman.Dialog.CoreNotifyRecur.js b/Pman.Dialog.CoreNotifyRecur.js index 647f8e98..5dd9c47c 100644 --- a/Pman.Dialog.CoreNotifyRecur.js +++ b/Pman.Dialog.CoreNotifyRecur.js @@ -270,57 +270,6 @@ Pman.Dialog.CoreNotifyRecur = { } } }, - { - xtype: 'ColumnModel', - xns: Roo.grid, - dataIndex : 'freq', - header : 'Frequency', - width : 70, - renderer : function(v,x,r) { - - Roo.log(this); - var cm = _this.grid.colModel; - var ix = cm.findColumnIndex('freq'); - var ce = cm.getCellEditor(ix) - var matches = ce.field.store.query('code',v); - if (!matches.length) { - return ''; - } - return String.format('{0}', matches.first().data.title); - }, - editor : { - xtype: 'GridEditor', - xns: Roo.grid, - field : { - xtype: 'ComboBox', - xns: Roo.form, - allowBlank : false, - displayField : 'title', - editable : false, - fieldLabel : 'Country', - hiddenName : 'freq', - listWidth : 200, - mode : 'local', - name : 'freq_name', - tpl : '
{title}
', - triggerAction : 'all', - valueField : 'code', - width : 200, - store : { - xtype: 'SimpleStore', - xns: Roo.data, - data : [ - [ 'HOURLY' , 'Hourly at' ] , - [ 'DAILY' , 'Daily at'] , - [ 'WEEKLY' , 'Weekly at'] , - [ 'Montly' , 'Montly at'] - ], - fields : ['code', 'title'], - sortInfo : { field : 'title', direction: 'ASC' } - } - } - } - }, { xtype: 'ColumnModel', xns: Roo.grid,