mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-29 10:09:10 +01:00
* Calendar: fix not working "no filter" favorite
This commit is contained in:
parent
b55fcedaca
commit
263a5f5f2c
@ -1316,18 +1316,18 @@ app.classes.calendar = AppJS.extend(
|
||||
}
|
||||
}
|
||||
|
||||
if (jQuery.isEmptyObject(state)) state.state = {};
|
||||
|
||||
// old calendar state handling on server-side (incl. switching to and from listview)
|
||||
var menuaction = 'calendar.calendar_uiviews.index';
|
||||
if (typeof state.state != 'undefined' && (typeof state.state.view == 'undefined' || state.state.view == 'listview'))
|
||||
{
|
||||
if (state.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.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';
|
||||
state.state.ajax = 'true';
|
||||
// check if we already use et2 / are in listview
|
||||
|
Loading…
Reference in New Issue
Block a user