options.params.person_id = p;
}
+ var from = _this.fromDateSel.getValue();
+
+ if(from){
+ options.params.from = from.format('Y-m-d');
+ }
+
+ var to = _this.toDateSel.getValue();
+
+ if(to){
+ options.params.to = to.format('Y-m-d');
+ }
}
},
items : [
'|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
+ //_self.setValue( new Date() );\r
+ },
+ select : function (combo, date)
+ {
+ _this.grid.footer.onClick('first');
+ }
+ }
+ },
+ {
+ '|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',
+ width : 100,
+ xns : Roo.form,
+ listeners : {
+ render : function (_self)\r
+ {\r
+ _this.toDateSel = _self;\r
+ //_self.setValue( new Date() );\r
},
select : function (combo, date)
{
}
}
},
+ {
+ '|xns' : 'Roo.Toolbar',
+ xtype : 'Separator',
+ xns : Roo.Toolbar
+ },
{
'|xns' : 'Roo.Toolbar',
xtype : 'Fill',