--- loncom/interface/londocs.pm 2009/10/04 10:27:55 1.388 +++ loncom/interface/londocs.pm 2009/10/04 13:58:02 1.389 @@ -1,7 +1,7 @@ # The LearningOnline Network # Documents # -# $Id: londocs.pm,v 1.388 2009/10/04 10:27:55 tempelho Exp $ +# $Id: londocs.pm,v 1.389 2009/10/04 13:58:02 tempelho Exp $ # # Copyright Michigan State University Board of Trustees # @@ -3253,7 +3253,6 @@ my %orderhash = ( ); my $tid='1'; my $varcd = 'Main Course Documents'; -$r->print(&generate_edit_table($tid,$varcd,\%orderhash)); $hadchanges=0; my $error = &editor($r,$coursenum,$coursedom,$folder,$allowed,'',$type); if ($error) { @@ -3264,6 +3263,8 @@ $r->print(&generate_edit_table($tid,$var } &changewarning($r,''); +$r->print(&generate_edit_table($tid,$varcd,\%orderhash)); + $r->print(''); } if ($env{'form.pagepath'}) { @@ -3373,14 +3374,14 @@ my %suporderhash = ( my $tid='2'; my $varscd = 'Supplemental Course Documents'; - -$r->print(&generate_edit_table($tid,$varscd,\%suporderhash)); -} - my $error = &editor($r,$coursenum,$coursedom,$folder,$allowed,'',$type); if ($error) { $r->print('

'.$error.'

'); } +$r->print(&generate_edit_table($tid,$varscd,\%suporderhash)); +} + + $r->print(''); $r->print(''); @@ -3708,7 +3709,7 @@ for (i = 0; i < currentDivs.length; i++) function openTabs(pageId) { tabnav = document.getElementById(pageId).getElementsByTagName('UL'); if(tabnav.length > 2 ){ - currentNav = document.getElementById(tabnav[0].id); + currentNav = document.getElementById(tabnav[1].id); currentLis = currentNav.getElementsByTagName('LI'); for(i = 0; i< currentLis.length; i++){ if(currentLis[i].className == 'active') {