mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 23:00:56 +01:00
Do not change selected date when going to week or month view.
This commit is contained in:
parent
f3d166a6c5
commit
7d12993e1a
@ -2979,7 +2979,6 @@ jQuery.extend(app.classes.calendar,{
|
||||
start_date: function(state) {
|
||||
var d = app.calendar.View.start_date.call(this,state);
|
||||
d.setUTCDate(1);
|
||||
state.date = app.calendar.date.toString(d);
|
||||
return app.calendar.date.start_of_week(d);
|
||||
},
|
||||
end_date: function(state) {
|
||||
|
@ -645,8 +645,7 @@ var et2_calendar_daycol = et2_valueWidget.extend([et2_IDetachedDOM, et2_IResizea
|
||||
// Click on the title
|
||||
if(this.title.is(_ev.target))
|
||||
{
|
||||
this._parent.set_start_date(this.date);
|
||||
this._parent.set_end_date(this.date);
|
||||
app.calendar.update_state({view: 'day',date: this.date.toJSON()});
|
||||
return false;
|
||||
}
|
||||
else if ($j(_ev.target).hasClass('calendar_calAddEvent'))
|
||||
|
@ -20,7 +20,7 @@ Egroupware
|
||||
<rows>
|
||||
<row class="view_row">
|
||||
<calendar-timegrid id="${row}"
|
||||
onchange="var state = {date:widget.options.start_date}; if(widget.options.start_date == widget.options.end_date) state.view = 'day'; app.calendar.update_state(state);"
|
||||
onchange="var state = {}; if(widget.options.start_date == widget.options.end_date) state.view = 'day'; app.calendar.update_state(state);"
|
||||
onevent_change="app.calendar.event_change"
|
||||
>
|
||||
</calendar-timegrid>
|
||||
|
Loading…
Reference in New Issue
Block a user