From: Edward Date: Wed, 11 Feb 2015 06:21:16 +0000 (+0800) Subject: Pman.Tab.AdminNotify.bjs X-Git-Url: http://git.roojs.org/?p=Pman.Admin;a=commitdiff_plain;h=6f9e7166abb9a5d4318dbb68e5a297057a353e48 Pman.Tab.AdminNotify.bjs Pman.Tab.AdminNotify.js --- diff --git a/Pman.Tab.AdminNotify.bjs b/Pman.Tab.AdminNotify.bjs index 9609d80..ced600b 100644 --- a/Pman.Tab.AdminNotify.bjs +++ b/Pman.Tab.AdminNotify.bjs @@ -127,6 +127,17 @@ } ] }, + { + "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" diff --git a/Pman.Tab.AdminNotify.js b/Pman.Tab.AdminNotify.js index 49cc613..1171f32 100644 --- a/Pman.Tab.AdminNotify.js +++ b/Pman.Tab.AdminNotify.js @@ -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) + { + _this.dateSel = _self; + _self.setValue( new Date() ); + }, + select : function (combo, date) + { + _this.wgrid.ds.load({}); + } + } + }, { '|xns' : 'Roo.Toolbar', xtype : 'Fill',