From f25c433b745ffa68539aa04258a715e3c4973867 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Wed, 16 May 2012 17:18:59 +0800 Subject: [PATCH] Pman.Dialog.CoreNotifyRecur.bjs Pman.Dialog.CoreNotifyRecur.js --- Pman.Dialog.CoreNotifyRecur.bjs | 1 + Pman.Dialog.CoreNotifyRecur.js | 94 ++++++++++++++++----------------- 2 files changed, 47 insertions(+), 48 deletions(-) diff --git a/Pman.Dialog.CoreNotifyRecur.bjs b/Pman.Dialog.CoreNotifyRecur.bjs index ed7446eb..b19dda2e 100644 --- a/Pman.Dialog.CoreNotifyRecur.bjs +++ b/Pman.Dialog.CoreNotifyRecur.bjs @@ -309,6 +309,7 @@ "*prop": "editor", "items": [ { + "*prop": "", "allowBlank": "false", "displayField": "tz", "editable": true, diff --git a/Pman.Dialog.CoreNotifyRecur.js b/Pman.Dialog.CoreNotifyRecur.js index bfdff3f3..51a8f6a9 100644 --- a/Pman.Dialog.CoreNotifyRecur.js +++ b/Pman.Dialog.CoreNotifyRecur.js @@ -424,57 +424,55 @@ Pman.Dialog.CoreNotifyRecur = { editor : { xtype: 'GridEditor', xns: Roo.grid, - items : [ - { - xtype: 'ComboBox', - xns: Roo.form, - allowBlank : 'false', - displayField : 'tz', - editable : true, - emptyText : "Select timezone", - fieldLabel : 'core_enum', - forceSelection : true, - hiddenName : 'tz', - listWidth : 400, - loadingText : "Searching...", - minChars : 2, - name : 'tz_name', - pageSize : 999, - qtip : "Select timezone", - selectOnFocus : true, - tpl : '
{tz}
', - triggerAction : 'all', - typeAhead : true, - valueField : 'tz', - width : 300, - store : { - xtype: 'Store', - xns: Roo.data, - listeners : { - beforeload : function (_self, o){ - o.params = o.params || {}; - // set more here - } - }, - remoteSort : true, - sortInfo : { direction : 'ASC', field: 'tz' }, - proxy : { - xtype: 'HttpProxy', - xns: Roo.data, - method : 'GET', - url : baseURL + '/Core/I18n/Timezone.php' - }, - reader : { - xtype: 'JsonReader', - xns: Roo.data, - id : 'id', - root : 'data', - totalProperty : 'total', - fields : [{"name":"tz","type":"string"}] + : { + xtype: 'ComboBox', + xns: Roo.form, + allowBlank : 'false', + displayField : 'tz', + editable : true, + emptyText : "Select timezone", + fieldLabel : 'core_enum', + forceSelection : true, + hiddenName : 'tz', + listWidth : 400, + loadingText : "Searching...", + minChars : 2, + name : 'tz_name', + pageSize : 999, + qtip : "Select timezone", + selectOnFocus : true, + tpl : '
{tz}
', + triggerAction : 'all', + typeAhead : true, + valueField : 'tz', + width : 300, + store : { + xtype: 'Store', + xns: Roo.data, + listeners : { + beforeload : function (_self, o){ + o.params = o.params || {}; + // set more here } + }, + remoteSort : true, + sortInfo : { direction : 'ASC', field: 'tz' }, + proxy : { + xtype: 'HttpProxy', + xns: Roo.data, + method : 'GET', + url : baseURL + '/Core/I18n/Timezone.php' + }, + reader : { + xtype: 'JsonReader', + xns: Roo.data, + id : 'id', + root : 'data', + totalProperty : 'total', + fields : [{"name":"tz","type":"string"}] } } - ] + } } }, { -- 2.39.2