Sidebox calendar changes

- Fix month button only worked once.  Again.
This commit is contained in:
Nathan Gray 2015-12-03 20:51:55 +00:00
parent 3ec70206cd
commit 585c856307

View File

@ -43,7 +43,7 @@ Egroupware
<buttononly id="header_today" label="Today" onclick="var tempDate = new Date(); <buttononly id="header_today" label="Today" onclick="var tempDate = new Date();
var today = new Date(tempDate.getFullYear(), tempDate.getMonth(), tempDate.getDate(),0,-tempDate.getTimezoneOffset(),0); var today = new Date(tempDate.getFullYear(), tempDate.getMonth(), tempDate.getDate(),0,-tempDate.getTimezoneOffset(),0);
app.calendar.update_state({date: today.toJSON()});return false;"/> app.calendar.update_state({date: today.toJSON()});return false;"/>
<buttononly id="header_month" label="Month" onclick="app.calendar.update_state({date: widget.btn.data('date'), view:'month'});" /> <buttononly id="header_month" label="Month" onclick="app.calendar.update_state({date: widget.btn.attr('data-date'), view:'month'});" />
</hbox> </hbox>
<date id="date" class="et2_fullWidth" inline="true" onchange="var view_change = app.calendar.sidebox_changes_views.indexOf(app.calendar.state.view); <date id="date" class="et2_fullWidth" inline="true" onchange="var view_change = app.calendar.sidebox_changes_views.indexOf(app.calendar.state.view);
var update = {date:widget.getValue()}; var update = {date:widget.getValue()};