[eGroupWare-svn] r56016 - /trunk/calendar/templates/default/sidebox.xet

[email protected] Wed, 04 May 2016 17:11:11 -0000
Newsgroups gmane.comp.web.egroupware.cvs
Message-ID <[email protected]>
Author: nathangray
Date: Wed May  4 19:11:11 2016
New Revision: 56016

URL: http://svn.stylite.de/viewvc/egroupware?rev=56016&view=rev
Log:
Make today button always bring sidebox calendar back to today, regardless of current selected date

Modified:
    trunk/calendar/templates/default/sidebox.xet

Modified: trunk/calendar/templates/default/sidebox.xet
URL: http://svn.stylite.de/viewvc/egroupware/trunk/calendar/templates/default/sidebox.xet?rev=56016&r1=56015&r2=56016&view=diff
==============================================================================
--- trunk/calendar/templates/default/sidebox.xet (original)
+++ trunk/calendar/templates/default/sidebox.xet Wed May  4 19:11:11 2016
@@ -19,7 +19,9 @@
 var tempDate = new Date();
 var today = new Date(tempDate.getFullYear(), tempDate.getMonth(), tempDate.getDate(),0,-tempDate.getTimezoneOffset(),0);
 var change = {date: today.toJSON()};
-app.calendar.update_state(change);return false;"/>
+app.calendar.update_state(change);
+widget.getRoot().getWidgetById('date').set_value(today);
+return false;"/>
 			<buttononly id="header_go" label="&#8629;" icon="nope" class="ui-corner-all" onclick="var change = {date: widget.btn.attr('data-date')}; if ( app.calendar.state.view == 'listview') {change.filter='month';} else {change.view = 'month';}app.calendar.update_state(change);" />
 			<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()};


------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z