[LON-CAPA-cvs] cvs: loncom /interface londocs.pm

tempelho tempelho@source.lon-capa.org
Sun, 04 Oct 2009 13:58:02 -0000


tempelho		Sun Oct  4 13:58:02 2009 EDT

  Modified files:              
    /loncom/interface	londocs.pm 
  Log:
  Changed the order of the tabs in edit course and the content list as shown in the mockup in Bug 5997.
  
  
Index: loncom/interface/londocs.pm
diff -u loncom/interface/londocs.pm:1.388 loncom/interface/londocs.pm:1.389
--- loncom/interface/londocs.pm:1.388	Sun Oct  4 10:27:55 2009
+++ loncom/interface/londocs.pm	Sun Oct  4 13:58:02 2009
@@ -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 $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 @@
        }
 
        &changewarning($r,'');
+$r->print(&generate_edit_table($tid,$varcd,\%orderhash));
+
 $r->print('</div>');
 	}
        if ($env{'form.pagepath'}) {
@@ -3373,14 +3374,14 @@
 
 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('<p><span class="LC_error">'.$error.'</span></p>');
         }
+$r->print(&generate_edit_table($tid,$varscd,\%suporderhash));
+}
+
+
 $r->print('</div>');
 $r->print('</div></div>');
 
@@ -3708,7 +3709,7 @@
 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') {