mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 14:41:29 +01:00
set date for "No Filter" (blank) favorite to todays date
This commit is contained in:
parent
36deafbbc0
commit
9be29f5122
@ -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';
|
||||||
|
Loading…
Reference in New Issue
Block a user