Pman.Tab.AdminNotify.bjs
[Pman.Admin] / Pman.Tab.AdminNotify.js
index c1a99ca..bac1b91 100644 (file)
@@ -303,7 +303,7 @@ Pman.Tab.AdminNotify = new Roo.XComponent({
                         },
                        {
                             '|xns' : 'Roo.Toolbar',
-                            test : From,
+                            text : "From",
                             xtype : 'TextItem',
                             xns : Roo.Toolbar
                         },
@@ -317,7 +317,37 @@ Pman.Tab.AdminNotify = new Roo.XComponent({
                             listeners : {
                                render : function (_self)\r
                                   {\r
-                                      _this.dateSel = _self;\r
+                                      _this.fromDateSel = _self;\r
+                                     _self.setValue(  new Date() );\r
+                                  },
+                               select : function (combo, date)
+                                  {
+                                      _this.grid.footer.onClick('first');
+                                  }
+                            }
+                        },
+                       {
+                            '|xns' : 'Roo.Toolbar',
+                            xtype : 'Separator',
+                            xns : Roo.Toolbar
+                        },
+                       {
+                            '|xns' : 'Roo.Toolbar',
+                            text : "To",
+                            xtype : 'TextItem',
+                            xns : Roo.Toolbar
+                        },
+                       {
+                            '|xns' : 'Roo.form',
+                            format : 'd/M/Y',
+                            xtype : 'DateField',
+                            allowBlank : false,
+                            width : 100,
+                            xns : Roo.form,
+                            listeners : {
+                               render : function (_self)\r
+                                  {\r
+                                      _this.toDateSel = _self;\r
                                      _self.setValue(  new Date() );\r
                                   },
                                select : function (combo, date)