Pman.Tab.AdminNotify.bjs
authorEdward <edward@roojs.com>
Wed, 11 Feb 2015 06:25:35 +0000 (14:25 +0800)
committerEdward <edward@roojs.com>
Wed, 11 Feb 2015 06:25:35 +0000 (14:25 +0800)
Pman.Tab.AdminNotify.js

Pman.Tab.AdminNotify.bjs
Pman.Tab.AdminNotify.js

index c056c01..085d6f9 100644 (file)
                                     "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.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",
+                                    "allowBlank" : false,
+                                    "width" : 100,
+                                    "$ xns" : "Roo.form"
+                                },
                                 {
                                     "xtype" : "Fill",
                                     "$ xns" : "Roo.Toolbar"
index 153a22f..a718d93 100644 (file)
@@ -326,6 +326,36 @@ Pman.Tab.AdminNotify = new Roo.XComponent({
                                   }
                             }
                         },
+                       {
+                            '|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.fromDateSel = _self;\r
+                                     _self.setValue(  new Date() );\r
+                                  },
+                               select : function (combo, date)
+                                  {
+                                      _this.grid.footer.onClick('first');
+                                  }
+                            }
+                        },
                        {
                             '|xns' : 'Roo.Toolbar',
                             xtype : 'Fill',