diff --git a/mozilla/calendar/resources/content/monthView.js b/mozilla/calendar/resources/content/monthView.js index d29ff2badf5..bb138c6e43c 100644 --- a/mozilla/calendar/resources/content/monthView.js +++ b/mozilla/calendar/resources/content/monthView.js @@ -525,9 +525,9 @@ MonthView.prototype.refreshDisplay = function monthView_refreshDisplay( ) } } if(!isSixthWeekDisplayed) { - document.getElementById( "month-week-6-row" ).setAttribute( "collapsed", "true" ); + document.getElementById( "month-week-6-row" ).setAttribute( "hidden", "true" ); } else { - document.getElementById( "month-week-6-row" ).removeAttribute( "collapsed" ); + document.getElementById( "month-week-6-row" ).removeAttribute( "hidden" ); } // fifth week should not display if holds only off days and only work days displayed @@ -543,9 +543,9 @@ MonthView.prototype.refreshDisplay = function monthView_refreshDisplay( ) } } if(!isFifthWeekDisplayed) { - document.getElementById( "month-week-5-row" ).setAttribute( "collapsed", "true" ); + document.getElementById( "month-week-5-row" ).setAttribute( "hidden", "true" ); } else { - document.getElementById( "month-week-5-row" ).removeAttribute( "collapsed" ); + document.getElementById( "month-week-5-row" ).removeAttribute( "hidden" ); } } diff --git a/mozilla/calendar/resources/content/multiweekView.js b/mozilla/calendar/resources/content/multiweekView.js index d65f29ec2bb..8d60ce25c4c 100644 --- a/mozilla/calendar/resources/content/multiweekView.js +++ b/mozilla/calendar/resources/content/multiweekView.js @@ -530,11 +530,11 @@ MultiweekView.prototype.refreshDisplay = function multiweekView_refreshDisplay( var weekIndex; for( weekIndex = 1 ; weekIndex <= this.WeeksInView ; ++weekIndex ) { - document.getElementById( "multiweek-week-" + weekIndex + "-row" ).removeAttribute( "collapsed" ); + document.getElementById( "multiweek-week-" + weekIndex + "-row" ).removeAttribute( "hidden" ); } for( weekIndex = this.WeeksInView + 1 ; weekIndex <= 6 ; ++weekIndex ) { - document.getElementById( "multiweek-week-" + weekIndex + "-row" ).setAttribute( "collapsed", "true" ); + document.getElementById( "multiweek-week-" + weekIndex + "-row" ).setAttribute( "hidden", "true" ); } // read preference for previous weeks in view