Pman.Dialog.CoreNotifyRecur.bjs
[Pman.Core] / Pman.Dialog.CoreNotifyRecur.js
index 138ed0b..9095e59 100644 (file)
@@ -430,35 +430,34 @@ Pman.Dialog.CoreNotifyRecur = {
                                             xns: Roo.form,
                                             allowBlank : 'false',
                                             displayField : 'tz',
-                                            editable : 'false',
-                                            emptyText : "Select core_enum",
+                                            editable : true,
+                                            emptyText : "Select timezone",
                                             fieldLabel : 'core_enum',
                                             forceSelection : true,
-                                            hiddenName : '',
+                                            hiddenName : 'tz',
                                             listWidth : 400,
                                             loadingText : "Searching...",
                                             minChars : 2,
-                                            name : '',
-                                            pageSize : 20,
-                                            qtip : "Select core_enum",
-                                            queryParam : '',
+                                            name : 'tz_name',
+                                            pageSize : 999,
+                                            qtip : "Select timezone",
                                             selectOnFocus : true,
-                                            tpl : '<div class="x-grid-cell-text x-btn button"><b>{name}</b> </div>',
+                                            tpl : '<div class="x-grid-cell-text x-btn button"><b>{tz}</b> </div>',
                                             triggerAction : 'all',
                                             typeAhead : true,
-                                            valueField : 'id',
+                                            valueField : 'tz',
                                             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
                                                     }
                                                 },
+                                                remoteSort : true,
+                                                sortInfo : { direction : 'ASC', field: 'tz' },
                                                 proxy : {
                                                     xtype: 'HttpProxy',
                                                     xns: Roo.data,
@@ -475,35 +474,7 @@ Pman.Dialog.CoreNotifyRecur = {
                                                 }
                                             }
                                         }
-                                    ],
-                                    field : {
-                                        xtype: 'ComboBox',
-                                        xns: Roo.form,
-                                        allowBlank : false,
-                                        displayField : 'title',
-                                        editable : false,
-                                        fieldLabel : 'Country',
-                                        hiddenName : 'freq',
-                                        listWidth : 200,
-                                        mode : 'local',
-                                        name : 'freq_name',
-                                        tpl : '<div class="x-grid-cell-text x-btn button"><b>{title}</b> </div>',
-                                        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' }
-                                        }
-                                    }
+                                    ]
                                 }
                             },
                             {