Bug 466979 - Clicking on the "Today" button in the minimonth does not refresh the calendar view. r=philipp ui-r=christian
☠☠ backed out by 2e3bd45d1468 ☠ ☠
authorLudovic Marcotte <lmarcotte@inverse.ca>
Fri, 23 Jan 2009 14:11:16 +0100
changeset 1734 ac5088aa887e7bfa29240f2ea6db6a3fcaee5f9d
parent 1733 5e4678c6114c4277f3e5c49db2f030f124fadc10
child 1735 050c5dde44b0c602922f2cda5793b4d2680b816e
push id1390
push usermschroeder@mozilla.x-home.org
push dateFri, 23 Jan 2009 13:13:00 +0000
treeherdercomm-central@ac5088aa887e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersphilipp, christian
bugs466979
Bug 466979 - Clicking on the "Today" button in the minimonth does not refresh the calendar view. r=philipp ui-r=christian
calendar/base/content/widgets/minimonth.xml
--- a/calendar/base/content/widgets/minimonth.xml
+++ b/calendar/base/content/widgets/minimonth.xml
@@ -124,17 +124,18 @@
                             class="minimonth-year-name"
                             oncommand="showPopupList(event, 'years-popup')"
                             xbl:inherits="label=year"/>
          <xul:spacer flex="1"/>
          <xul:toolbarbutton anonid="left-button" class="minimonth-nav-btns" dir="-1"
                             oncommand="this.kMinimonth.advanceMonth(parseInt(this.getAttribute('dir'), 10))"
                             tooltiptext="&onemonthbackward.tooltip;"/>
          <xul:toolbarbutton anonid="today-button" class="minimonth-nav-btns" dir="0"
-                            oncommand="this.kMinimonth.selectDate(new Date());"
+                            oncommand="var d = new Date(); this.kMinimonth.selectDate(d);
+                                       this.kMinimonth.dayClicked(this.kMinimonth.getBoxForDate(d));"
                             tooltiptext="&showToday.tooltip;"/>
          <xul:toolbarbutton anonid="right-button" class="minimonth-nav-btns" dir="1"
                             oncommand="this.kMinimonth.advanceMonth(parseInt(this.getAttribute('dir'), 10))"
                             tooltiptext="&onemonthforward.tooltip;"/>
        <xul:popupset anonid="minmonth-popupset">
          <xul:popup anonid="months-popup" position="after_start"
                     onpopupshowing="event.stopPropagation();"
                     onpopuphidden="firePopupListHidden();">