');
# --------------------------------------------------------- Standard documents
my $savefolderpath;
my $active = 'style="display: none;"';
@@ -2939,8 +2941,6 @@ HIDDENFORM
$active = 'style="display: block;"';
}
$r->print('
');
if($activeClass == 1){
$active = 'style="display: block;"';
}
- $r->print('');
- $r->print(&Apache::loncommon::help_open_topic('Docs_Adding_Course_Doc',
- &mt('Editing the Table of Contents for your '.$type)));
my $folder=$env{'form.folder'};
if ($folder eq '' || $folder=~/^supplemental/) {
$folder='default';
@@ -2951,11 +2951,11 @@ HIDDENFORM
}
my $postexec='';
if ($folder eq 'default') {
- $r->print(''
+ $r->print(''."\n"
);
} else {
#$postexec='self.close();';
@@ -2987,6 +2987,7 @@ IMSPFORM
my $newnavform=(<
+
$uploadtag
@@ -2998,6 +2999,7 @@ IMSPFORM
NNFORM
my $newsmppageform=(<
+
$uploadtag
@@ -3009,6 +3011,7 @@ NSPFORM
my $newsmpproblemform=(<
+
$uploadtag
@@ -3021,6 +3024,7 @@ NSPROBFORM
my $newdropboxform=(<
+
$uploadtag
@@ -3032,6 +3036,7 @@ NDBFORM
my $newexuploadform=(<
+
$uploadtag
@@ -3044,6 +3049,7 @@ NEXUFORM
my $newbulform=(<
+
$uploadtag
@@ -3056,6 +3062,7 @@ NBFORM
my $newaboutmeform=(<
+
$uploadtag
@@ -3068,6 +3075,7 @@ NAMFORM
my $newaboutsomeoneform=(<
+
$uploadtag
@@ -3080,6 +3088,7 @@ NASOFORM
my $newrosterform=(<
+
$uploadtag
@@ -3100,6 +3109,7 @@ my $newfolderform;
');
if ($env{'form.pagepath'}) {
}
@@ -3183,7 +3198,7 @@ $r->print('');
+ $r->print('
+
$fileupload
@@ -3227,6 +3243,7 @@ SUPDOCFORM my $supnewfolderform=(<
+
@@ -3240,6 +3257,7 @@ SNFFORM
my $supnewextform=(<
+
@@ -3252,6 +3270,7 @@ SNEFORM
my $supnewsylform=(<
+
@@ -3264,6 +3283,7 @@ SNSFORM
my $supnewaboutmeform=(<
+
@@ -3347,21 +3367,42 @@ sub generate_edit_table {
my ($tid,$varcd,$orderhash_ref) = @_;
my %orderhash = %{$orderhash_ref};
my $form;
-
- $form = '';
@@ -3574,13 +3615,21 @@ function unselectInactive(nav) {
currentNav = document.getElementById(nav);
currentLis = currentNav.getElementsByTagName('LI');
for (i = 0; i < currentLis.length; i++) {
- currentLis[i].className = 'i';
+ if(currentLis[i].className == 'right active' || currentLis[i].className == 'right'){
+ currentLis[i].className = 'right';
+ }else{
+ currentLis[i].className = 'i';
+ }
}
}
function hideAll(current, nav, data) {
unselectInactive(nav);
-current.className = 'active';
+if(current.className == 'right'){
+ current.className = 'right active'
+ }else{
+ current.className = 'active';
+}
currentData = document.getElementById(data);
currentDivs = currentData.getElementsByTagName('DIV');
for (i = 0; i < currentDivs.length; i++) {
@@ -3590,7 +3639,21 @@ for (i = 0; i < currentDivs.length; i++)
}
}
+function openTabs(pageId) {
+ tabnav = document.getElementById(pageId).getElementsByTagName('UL');
+ if(tabnav.length > 0 ){
+ currentNav = document.getElementById(tabnav[0].id);
+ currentLis = currentNav.getElementsByTagName('LI');
+ for(i = 0; i< currentLis.length; i++){
+ if(currentLis[i].className == 'active') {
+ currentLis[i].onclick;
+ }
+ }
+ }
+}
+
function showPage(current, pageId, nav, data) {
+ /*openTabs(pageId);*/
hideAll(current, nav, data);
unselectInactive(nav);
current.className = 'active';
');
my $folder=$env{'form.folder'};
unless ($folder=~/^supplemental/) {
$folder='supplemental';
@@ -3205,6 +3220,7 @@ $r->print('
');
my $supupdocform=(<@@ -3227,6 +3243,7 @@ SUPDOCFORM my $supnewfolderform=(<
'.&mt($varcd).'
'; + my $activetab; + my $active; + if($env{'form.active'} ne ''){ + $activetab = $env{'form.active'}; + } + $form = ''.&mt($varcd).'
'; $form .= ' '; $form .= '';
foreach my $field (keys(%orderhash)){
if($field ne 'zz'){
- $form .= '
';
+ if($activetab eq '' || $activetab ne $field){
+ $active = 'style="display: none;"';
+ }elsif($activetab eq $field){
+ $active = 'style="display:block;"';
+ }
+ $form .= ''.${$orderhash{$field}}[1]
+ .'
';
}
}
$form .= '