Pman.Tab.AdminNotify.bjs
[Pman.Admin] / Pman.Tab.AdminNotify.bjs
index ced600b..2226bac 100644 (file)
                                         }
                                     ]
                                 },
+                                {
+                                    "xtype" : "Separator",
+                                    "$ xns" : "Roo.Toolbar"
+                                },
+                                {
+                                    "text" : "From",
+                                    "xtype" : "TextItem",
+                                    "$ xns" : "Roo.Toolbar"
+                                },
+                                {
+                                    "listeners" : {
+                                        "render" : "function (_self)\r\n{\r\n    _this.fromDateSel = _self;\r\n   _self.setValue(  new Date() );\r\n}",
+                                        "select" : "function (combo, date)\n{\n    _this.grid.footer.onClick('first');\n}"
+                                    },
+                                    "format" : "d/M/Y",
+                                    "xtype" : "DateField",
+                                    "width" : 100,
+                                    "$ xns" : "Roo.form"
+                                },
+                                {
+                                    "xtype" : "Separator",
+                                    "$ xns" : "Roo.Toolbar"
+                                },
+                                {
+                                    "text" : "To",
+                                    "xtype" : "TextItem",
+                                    "$ xns" : "Roo.Toolbar"
+                                },
                                 {
                                     "listeners" : {
-                                        "render" : "function (_self)\r\n{\r\n    _this.dateSel = _self;\r\n   _self.setValue(  new Date() );\r\n}",
-                                        "select" : "function (combo, date)\n{\n    _this.wgrid.ds.load({});\n}"
+                                        "render" : "function (_self)\r\n{\r\n    _this.toDateSel = _self;\r\n   //_self.setValue(  new Date() );\r\n}",
+                                        "select" : "function (combo, date)\n{\n    _this.grid.footer.onClick('first');\n}"
                                     },
                                     "format" : "d/M/Y",
                                     "xtype" : "DateField",
-                                    "allowBlank" : false,
                                     "width" : 100,
                                     "$ xns" : "Roo.form"
                                 },