set date for "No Filter" (blank) favorite to todays date

This commit is contained in:
Ralf Becker 2014-02-28 10:51:33 +00:00
parent 36deafbbc0
commit 9be29f5122

View File

@ -1084,6 +1084,9 @@ app.classes.calendar = AppJS.extend(
{ {
// 'blank' is the special name for no filters, send that instead of the nice translated name // 'blank' is the special name for no filters, send that instead of the nice translated name
state.state.favorite = jQuery.isEmptyObject(state) || jQuery.isEmptyObject(state.state||state.filter) ? 'blank' : state.name.replace(/[^A-Za-z0-9-_]/g, '_'); state.state.favorite = jQuery.isEmptyObject(state) || jQuery.isEmptyObject(state.state||state.filter) ? 'blank' : state.name.replace(/[^A-Za-z0-9-_]/g, '_');
// set date for "No Filter" (blank) favorite to todays date
if (state.state.favorite == 'blank')
state.state.date = jQuery.datepicker.formatDate('yymmdd', new Date);
} }
menuaction = 'calendar.calendar_uilist.listview'; menuaction = 'calendar.calendar_uilist.listview';
state.state.ajax = 'true'; state.state.ajax = 'true';