--- loncom/interface/londocs.pm 2009/07/01 13:16:42 1.374 +++ loncom/interface/londocs.pm 2009/07/08 07:51:01 1.375 @@ -1,7 +1,7 @@ # The LearningOnline Network # Documents # -# $Id: londocs.pm,v 1.374 2009/07/01 13:16:42 tempelho Exp $ +# $Id: londocs.pm,v 1.375 2009/07/08 07:51:01 tempelho Exp $ # # Copyright Michigan State University Board of Trustees # @@ -2507,7 +2507,7 @@ sub changewarning { 'function reinit(tf) { tf.submit();'.$postexec.' }'."\n". '// ]]>'."\n". ''."\n". -'
'. +''. '

'. &mt($message,' '.&mt('Supplemental Course Documents').''); - $r->print('

'); + $r->print('
'); # --------------------------------------------------------- Standard documents my $savefolderpath; my $active = 'style="display: none;"'; @@ -3646,15 +3646,18 @@ function openTabs(pageId) { currentLis = currentNav.getElementsByTagName('LI'); for(i = 0; i< currentLis.length; i++){ if(currentLis[i].className == 'active') { - currentLis[i].onclick; + funcString = currentLis[i].onclick.toString(); + tab = funcString.split('"'); + currentData = document.getElementById(tab[1]); + currentData.style.display = 'block'; } } } } function showPage(current, pageId, nav, data) { - /*openTabs(pageId);*/ hideAll(current, nav, data); + openTabs(pageId); unselectInactive(nav); current.className = 'active'; currentData = document.getElementById(pageId);