From a6aec10c44e8a8342da4bcb265a8587a074430bb Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Wed, 14 Nov 2012 13:58:41 +0800 Subject: [PATCH] Pman.Dialog.CoreNotifyRecur.bjs Pman.Dialog.CoreNotifyRecur.js --- Pman.Dialog.CoreNotifyRecur.bjs | 19 +++---- Pman.Dialog.CoreNotifyRecur.js | 96 ++++++++++++++++----------------- 2 files changed, 57 insertions(+), 58 deletions(-) diff --git a/Pman.Dialog.CoreNotifyRecur.bjs b/Pman.Dialog.CoreNotifyRecur.bjs index 0a10d3f8..a29f120b 100644 --- a/Pman.Dialog.CoreNotifyRecur.bjs +++ b/Pman.Dialog.CoreNotifyRecur.bjs @@ -125,28 +125,29 @@ "*prop": "editor", "items": [ { - "|xns": "Roo.form", - "xtype": "ComboBox", + "*prop": "", "allowBlank": "false", + "displayField": "", "editable": "false", "emptyText": "Select core_enum", + "fieldLabel": "core_enum", "forceSelection": true, + "hiddenName": "", "listWidth": 400, "loadingText": "Searching...", "minChars": 2, + "name": "", "pageSize": 20, "qtip": "Select core_enum", + "queryParam": "", "selectOnFocus": true, + "tpl": "
{name}
", "triggerAction": "all", "typeAhead": true, - "width": 300, - "tpl": "
{name}
", - "queryParam": "", - "fieldLabel": "core_enum", "valueField": "id", - "displayField": "", - "hiddenName": "", - "name": "", + "width": 300, + "xtype": "ComboBox", + "|xns": "Roo.form", "items": [ { "*prop": "store", diff --git a/Pman.Dialog.CoreNotifyRecur.js b/Pman.Dialog.CoreNotifyRecur.js index 6939c53b..1b59e7ed 100644 --- a/Pman.Dialog.CoreNotifyRecur.js +++ b/Pman.Dialog.CoreNotifyRecur.js @@ -287,58 +287,56 @@ Pman.Dialog.CoreNotifyRecur = { editor : { xtype: 'GridEditor', xns: Roo.grid, - items : [ - { - xtype: 'ComboBox', - xns: Roo.form, - allowBlank : 'false', - editable : 'false', - emptyText : "Select core_enum", - forceSelection : true, - listWidth : 400, - loadingText : "Searching...", - minChars : 2, - pageSize : 20, - qtip : "Select core_enum", - selectOnFocus : true, - triggerAction : 'all', - typeAhead : true, - width : 300, - tpl : '
{name}
', - queryParam : '', - fieldLabel : 'core_enum', - valueField : 'id', - displayField : '', - hiddenName : '', - name : '', - store : { - xtype: 'Store', - xns: Roo.data, - remoteSort : true, - sortInfo : { direction : 'ASC', field: 'id' }, - listeners : { - beforeload : function (_self, o){ - o.params = o.params || {}; - // set more here - } - }, - proxy : { - xtype: 'HttpProxy', - xns: Roo.data, - method : 'GET', - url : baseURL + '/Roo/core_enum.php' - }, - reader : { - xtype: 'JsonReader', - xns: Roo.data, - id : 'id', - root : 'data', - totalProperty : 'total', - fields : [{"name":"id","type":"int"},{"name":"etype","type":"string"}] + : { + xtype: 'ComboBox', + xns: Roo.form, + allowBlank : 'false', + displayField : '', + editable : 'false', + emptyText : "Select core_enum", + fieldLabel : 'core_enum', + forceSelection : true, + hiddenName : '', + listWidth : 400, + loadingText : "Searching...", + minChars : 2, + name : '', + pageSize : 20, + qtip : "Select core_enum", + queryParam : '', + selectOnFocus : true, + tpl : '
{name}
', + triggerAction : 'all', + typeAhead : true, + valueField : 'id', + width : 300, + store : { + xtype: 'Store', + xns: Roo.data, + remoteSort : true, + sortInfo : { direction : 'ASC', field: 'id' }, + listeners : { + beforeload : function (_self, o){ + o.params = o.params || {}; + // set more here } + }, + proxy : { + xtype: 'HttpProxy', + xns: Roo.data, + method : 'GET', + url : baseURL + '/Roo/core_enum.php' + }, + reader : { + xtype: 'JsonReader', + xns: Roo.data, + id : 'id', + root : 'data', + totalProperty : 'total', + fields : [{"name":"id","type":"int"},{"name":"etype","type":"string"}] } } - ] + } } }, { -- 2.39.2