From e12f59332a1898736117c681b6f09e60c1c96a07 Mon Sep 17 00:00:00 2001 From: Edward Date: Wed, 11 Feb 2015 14:25:35 +0800 Subject: [PATCH] Pman.Tab.AdminNotify.bjs Pman.Tab.AdminNotify.js --- Pman.Tab.AdminNotify.bjs | 20 ++++++++++++++++++++ Pman.Tab.AdminNotify.js | 30 ++++++++++++++++++++++++++++++ 2 files changed, 50 insertions(+) diff --git a/Pman.Tab.AdminNotify.bjs b/Pman.Tab.AdminNotify.bjs index c056c01..085d6f9 100644 --- a/Pman.Tab.AdminNotify.bjs +++ b/Pman.Tab.AdminNotify.bjs @@ -147,6 +147,26 @@ "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" diff --git a/Pman.Tab.AdminNotify.js b/Pman.Tab.AdminNotify.js index 153a22f..a718d93 100644 --- a/Pman.Tab.AdminNotify.js +++ b/Pman.Tab.AdminNotify.js @@ -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) + { + _this.fromDateSel = _self; + _self.setValue( new Date() ); + }, + select : function (combo, date) + { + _this.grid.footer.onClick('first'); + } + } + }, { '|xns' : 'Roo.Toolbar', xtype : 'Fill', -- 2.39.2