Skip to content
Snippets Groups Projects
Commit f76e677a authored by LE GAC Renaud's avatar LE GAC Renaud
Browse files

Handle properly date in grid filter.

parent 55aec809
No related branches found
No related tags found
No related merge requests found
......@@ -60,7 +60,11 @@ Ext.define('App.grid.Filter', {
// catch a change of date
case 'datefield':
item.on('select', this.onChange, this);
item.on({
change: this.onChange,
select: this.onChange,
scope: this
});
break;
// catch the key pressed enter for other fields
......@@ -103,7 +107,11 @@ Ext.define('App.grid.Filter', {
// catch a change of date
case 'datefield':
item.un('select', this.onChange, this);
item.un({
change: this.onChange,
select: this.onChange,
scope: this
});
break;
// catch the key pressed enter for other fields
......@@ -287,8 +295,6 @@ Ext.define('App.grid.Filter', {
if (field.xtype === 'datefield') {
if (value instanceof Date) {
value = Ext.util.Format.date(value, field.format);
} else {
return;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment