Pman.Dialog.CoreNotifyRecur.bjs
[Pman.Core] / Pman.Dialog.CoreNotifyRecur.js
index 96c37d9..bfdff3f 100644 (file)
@@ -450,19 +450,19 @@ Pman.Dialog.CoreNotifyRecur = {
                                             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,
                                                     method : 'GET',
-                                                    url : baseURL + '/Roo/core_enum.php'
+                                                    url : baseURL + '/Core/I18n/Timezone.php'
                                                 },
                                                 reader : {
                                                     xtype: 'JsonReader',
@@ -470,39 +470,11 @@ Pman.Dialog.CoreNotifyRecur = {
                                                     id : 'id',
                                                     root : 'data',
                                                     totalProperty : 'total',
-                                                    fields : [{"name":"id","type":"int"},{"name":"etype","type":"string"}]
+                                                    fields : [{"name":"tz","type":"string"}]
                                                 }
                                             }
                                         }
-                                    ],
-                                    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' }
-                                        }
-                                    }
+                                    ]
                                 }
                             },
                             {