Bug 815815 - Minimonth bold days always get reloaded when click onto one of them. r=Fallen
authorSebastian Hengst <archaeopteryx@coole-files.de>
Mon, 03 Dec 2012 00:51:26 +0100
changeset 14501 004743024049113ce92d283dc66031c674a8c6b0
parent 14500 f6aa8845e67bbe75567799582d4d90aca1163b9f
child 14502 0228cef8fb832e863f225a27f20828adb922a2f9
push id845
push userbugzilla@standard8.plus.com
push dateTue, 19 Feb 2013 18:11:16 +0000
treeherdercomm-beta@ecc3ce2d7daa [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersFallen
bugs815815
Bug 815815 - Minimonth bold days always get reloaded when click onto one of them. r=Fallen DONTBUILD CLOSED TREE
calendar/base/content/widgets/minimonth.xml
--- a/calendar/base/content/widgets/minimonth.xml
+++ b/calendar/base/content/widgets/minimonth.xml
@@ -783,17 +783,17 @@
             // We set the hour and minute to something highly unlikely to be the
             // exact change point of DST, so timezones like America/Sao Paulo
             // don't display some days twice.
             aDate.setHours(12);
             aDate.setMinutes(34);
             aDate.setSeconds(0);
             aDate.setMilliseconds(0);
             // Don't fire onmonthchange event upon initialization
-            var monthChanged = this.mEditorDate && (this.mEditorDate != aDate);
+            var monthChanged = this.mEditorDate && (this.mEditorDate.value != aDate.value);
             this.mEditorDate = aDate; // only place mEditorDate is set.
 
             if (this.mToday) {
               this.mToday.removeAttribute("today");
               this.mToday = null;
             }
 
             if (this.mSelected) {