--- loncom/interface/londocs.pm 2012/05/07 02:19:44 1.484.2.1 +++ loncom/interface/londocs.pm 2012/05/09 19:46:30 1.485 @@ -1,7 +1,7 @@ # The LearningOnline Network # Documents # -# $Id: londocs.pm,v 1.484.2.1 2012/05/07 02:19:44 raeburn Exp $ +# $Id: londocs.pm,v 1.485 2012/05/09 19:46:30 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -1664,7 +1664,7 @@ sub checkonthis { =item list_symbs() -List Content Idenifiers +List Content Identifiers =cut @@ -2108,6 +2108,7 @@ sub startContentScreen { if (($mode eq 'navmaps') || ($mode eq 'supplemental')) { $output .= '    '.&mt('Content Overview').'    '."\n"; $output .= '     '.&mt('Content Search').'     '."\n"; + $output .= '      '.&mt('Content Index').'      '."\n"; $output .= '
  • '.&mt('Supplemental Content').'
  • '; } else { $output .= '
  •       '.&mt('Content Editor').'      
  • '."\n"; @@ -2440,9 +2441,9 @@ sub handler { $script .= &editing_js($udom,$uname,$supplementalflag). &history_tab_js(). &inject_data_js(). - &resize_contentdiv_js($tabidstr); + &Apache::lonhtmlcommon::resize_scrollbox_js('docs',$tabidstr); $addentries = { - onload => "javascript:resize_contentdiv('contentscroll','1','1');", + onload => "javascript:resize_scrollbox('contentscroll','1','1');", }; } } @@ -3682,7 +3683,7 @@ function showPage(current, pageId, nav, } } } - resize_contentdiv('contentscroll','1','0'); + resize_scrollbox('contentscroll','1','0'); return false; } @@ -3799,196 +3800,6 @@ function choose_switchserver_window() { ENDSWITCHJS } -sub resize_contentdiv_js { - my ($tabidstr) = @_; - my $viewport_js = &Apache::loncommon::viewport_geometry_js(); - return < maxtabw) { - maxtabw = actabw; - } - } else { - if (document.getElementById(alltabs[i]) != null) { - var thistab = document.getElementById(alltabs[i]); - thistab.style.visibility = 'hidden'; - thistab.style.display = 'block'; - var tabw = document.getElementById(alltabs[i]).offsetWidth; - thistab.style.display = 'none'; - thistab.style.visibility = ''; - if (tabw > maxtabw) { - maxtabw = tabw; - } - } - } - } - - if (maxtabw > 0) { - var newscrollboxw; - if (maxtabw+paddingw+scrollboxscrollw scrollboxheight) { - if (freevspace > offsetv) { - newscrollboxheight = scrollboxheight+freevspace-offsetv; - if (newscrollboxheight < minvscrollbox) { - newscrollboxheight = minvscrollbox; - } - scrollbox.style.height = newscrollboxheight+"px"; - } - } - } - scrollboxheight = scrollbox.offsetHeight; - var contentlistheight = document.getElementById("contentlist").offsetHeight; - - if (scrollboxscrollheight <= scrollboxheight) { - if ((contentlistheight+offsetv)