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

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

index 9609d80..ced600b 100644 (file)
                                         }
                                     ]
                                 },
+                                {
+                                    "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}"
+                                    },
+                                    "format" : "d/M/Y",
+                                    "xtype" : "DateField",
+                                    "allowBlank" : false,
+                                    "width" : 100,
+                                    "$ xns" : "Roo.form"
+                                },
                                 {
                                     "xtype" : "Fill",
                                     "$ xns" : "Roo.Toolbar"
index 49cc613..1171f32 100644 (file)
@@ -296,6 +296,25 @@ Pman.Tab.AdminNotify = new Roo.XComponent({
                             ]
 
                         },
+                       {
+                            '|xns' : 'Roo.form',
+                            format : 'd/M/Y',
+                            xtype : 'DateField',
+                            allowBlank : false,
+                            width : 100,
+                            xns : Roo.form,
+                            listeners : {
+                               render : function (_self)\r
+                                  {\r
+                                      _this.dateSel = _self;\r
+                                     _self.setValue(  new Date() );\r
+                                  },
+                               select : function (combo, date)
+                                  {
+                                      _this.wgrid.ds.load({});
+                                  }
+                            }
+                        },
                        {
                             '|xns' : 'Roo.Toolbar',
                             xtype : 'Fill',