--- loncom/interface/londocs.pm 2009/10/04 09:41:12 1.387
+++ 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.387 2009/10/04 09:41:12 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'}) {
@@ -3294,7 +3295,7 @@ $r->print('');
my $path = &HTML::Entities::encode($env{'form.folderpath'},'<>&"');
my @supupdocform = (
- {'
'=>"$lt{'upld'}$help{'Uploading_From_Harddrive'}"},
+ {'
'=>"$help{'Uploading_From_Harddrive'}"},
);
my $supupdocform=(<
@@ -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('');
@@ -3448,14 +3449,7 @@ sub generate_edit_table {
$form = '';
$form .= '
';
foreach my $name (sort(keys(%orderhash))){
- if($name eq 'zz'){
- if($activetab ne ''){
- $active = 'class="right"';
- }else{
- $active = 'class="right active"';
- }
- $form .= '- '.&mt(${$orderhash{$name}}[0]).'
';
- }else{
+ if($name ne 'zz'){
if($activetab eq '' || $activetab ne $name){
$active = '';
}elsif($activetab eq $name){
@@ -3715,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') {