mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-14 18:08:21 +01:00
Keep user's last choice for weekend in week view
This commit is contained in:
parent
0438456ad3
commit
fa62547d77
@ -2361,6 +2361,7 @@ app.classes.calendar = AppJS.extend(
|
|||||||
})
|
})
|
||||||
.on('click', '.ui-datepicker-week-col', function() {
|
.on('click', '.ui-datepicker-week-col', function() {
|
||||||
var view = app.calendar.state.view;
|
var view = app.calendar.state.view;
|
||||||
|
var days = app.calendar.state.days;
|
||||||
|
|
||||||
// Fake a click event on the first day to get the updated date
|
// Fake a click event on the first day to get the updated date
|
||||||
$j(this).next().click();
|
$j(this).next().click();
|
||||||
@ -2368,7 +2369,7 @@ app.classes.calendar = AppJS.extend(
|
|||||||
// Set to week view, if in one of the views where we change view
|
// Set to week view, if in one of the views where we change view
|
||||||
if(app.calendar.sidebox_changes_views.indexOf(view) >= 0)
|
if(app.calendar.sidebox_changes_views.indexOf(view) >= 0)
|
||||||
{
|
{
|
||||||
app.calendar.update_state({view: 'week', date: date.getValue(), days: false});
|
app.calendar.update_state({view: 'week', date: date.getValue(), days: days});
|
||||||
}
|
}
|
||||||
else if (app.calendar.state.view == 'planner')
|
else if (app.calendar.state.view == 'planner')
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user