Checked in patch for bug 269837:

Allow weekview to become narrower when "Workweek days only" is checked
This commit is contained in:
mostafah%oeone.com 2004-11-17 19:36:24 +00:00
parent 461b6a8a0d
commit 98e5ad969b

View File

@ -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