--- loncom/interface/londocs.pm 2009/07/01 13:16:42 1.374 +++ loncom/interface/londocs.pm 2009/07/10 15:05:28 1.376 @@ -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.376 2009/07/10 15:05:28 bisitz Exp $ # # Copyright Michigan State University Board of Trustees # @@ -278,7 +278,7 @@ sub exportcourse { my $navmap = Apache::lonnavmaps::navmap->new(); if (!defined($navmap)) { $r->print(&Apache::loncommon::start_page('Export '.lc($type).' to IMS content package'). - '

IMS Export Failed

'. + '

'.&mt('IMS Export Failed').'

'. '
'. &mt('Unable to retrieve information about course contents'). '
'.&mt('Return to Course Editor').''); @@ -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 +3648,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);