mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-25 06:10:35 +00:00
Checked in patch for bug 269837:
Allow weekview to become narrower when "Workweek days only" is checked
This commit is contained in:
parent
461b6a8a0d
commit
98e5ad969b
@ -473,11 +473,11 @@ WeekView.prototype.refreshDisplay = function( )
|
||||
document.getElementById( "week-header-date-text-"+dayIndex ).setAttribute( "value", NewArrayOfDayNames[col] );
|
||||
|
||||
if( isOnlyWorkDays && isDayOff[(Offset + col) % 7]) {
|
||||
document.getElementById( "weekview-column-day-"+dayIndex ).setAttribute( "collapsed", "true" );
|
||||
document.getElementById( "weekview-header-column-day-"+dayIndex ).setAttribute( "collapsed", "true" );
|
||||
document.getElementById( "weekview-column-day-"+dayIndex ).setAttribute( "hidden", "true" );
|
||||
document.getElementById( "weekview-header-column-day-"+dayIndex ).setAttribute( "hidden", "true" );
|
||||
} else {
|
||||
document.getElementById( "weekview-column-day-"+dayIndex ).removeAttribute( "collapsed" );
|
||||
document.getElementById( "weekview-header-column-day-"+dayIndex ).removeAttribute( "collapsed" );
|
||||
document.getElementById( "weekview-column-day-"+dayIndex ).removeAttribute( "hidden" );
|
||||
document.getElementById( "weekview-header-column-day-"+dayIndex ).removeAttribute( "hidden" );
|
||||
}
|
||||
|
||||
// advance to next day
|
||||
|
Loading…
x
Reference in New Issue
Block a user