Pman.Dialog.CoreNotifyRecur.bjs
[Pman.Core] / Pman.Dialog.CoreNotifyRecur.js
index defd52a..9095e59 100644 (file)
@@ -210,6 +210,7 @@ Pman.Dialog.CoreNotifyRecur = {
                                             grid.stopEditing();
                                             grid.getDataSource().insert(0, r); 
                                             grid.startEditing(0, 2); 
+                                            
                                         
                                         }
                                     },
@@ -419,7 +420,62 @@ Pman.Dialog.CoreNotifyRecur = {
                                 dataIndex : 'tz',
                                 header : 'Timezone',
                                 width : 100,
-                                renderer : function(v) { return String.format('{0}', v); }
+                                renderer : function(v) { return String.format('{0}', v); },
+                                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 : '<div class="x-grid-cell-text x-btn button"><b>{tz}</b> </div>',
+                                            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 + '/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: 'ColumnModel',