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

raeburn raeburn at source.lon-capa.org
Sat Dec 1 11:06:43 EST 2012


raeburn		Sat Dec  1 16:06:43 2012 EDT

  Modified files:              
    /loncom/interface	londocs.pm 
  Log:
  - "Import from Assembled Map" fieldset not displayed until icon/link clicked. 
  
  
Index: loncom/interface/londocs.pm
diff -u loncom/interface/londocs.pm:1.513 loncom/interface/londocs.pm:1.514
--- loncom/interface/londocs.pm:1.513	Sat Dec  1 15:59:01 2012
+++ loncom/interface/londocs.pm	Sat Dec  1 16:06:42 2012
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # Documents
 #
-# $Id: londocs.pm,v 1.513 2012/12/01 15:59:01 raeburn Exp $
+# $Id: londocs.pm,v 1.514 2012/12/01 16:06:42 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -3664,7 +3664,7 @@
 FUFORM
 
 	my $importpubform=(<<SEDFFORM);
-        <a class="LC_menubuttons_link" href="javascript:toggleMap();">
+        <a class="LC_menubuttons_link" href="javascript:toggleMap('map');">
         $lt{'impm'}</a>$help{'Load_Map'}
 	<form action="/adm/coursedocs" method="post" name="mapimportform">
         <fieldset id="importmapform" style="display: none;" />
@@ -3684,7 +3684,7 @@
 	{ '<img class="LC_noBorder LC_middle" src="/res/adm/pages/src.png" alt="'.$lt{srch}.'"  onclick="javascript:groupsearch()" />' => $pathitem."<a class='LC_menubuttons_link' href='javascript:groupsearch()'>$lt{'srch'}</a>" },
 	{ '<img class="LC_noBorder LC_middle" src="/res/adm/pages/res.png" alt="'.$lt{impo}.'"  onclick="javascript:groupimport();"/>' => "<a class='LC_menubuttons_link' href='javascript:groupimport();'>$lt{'impo'}</a>$help{'Importing_LON-CAPA_Resource'}" },
 	{ '<img class="LC_noBorder LC_middle" src="/res/adm/pages/wishlist.png" alt="'.$lt{lnks}.'" onclick="javascript:open_StoredLinks_Import();" />' => "<a class='LC_menubuttons_link' href='javascript:open_StoredLinks_Import();'>$lt{'lnks'}</a>" },
-        { '<img class="LC_noBorder LC_middle" src="/res/adm/pages/sequence.png" alt="'.$lt{impm}.'" onclick="javascript:toggleMap();" />' => $importpubform }
+        { '<img class="LC_noBorder LC_middle" src="/res/adm/pages/sequence.png" alt="'.$lt{impm}.'" onclick="javascript:toggleMap(\'map\');" />' => $importpubform }
 	);
 	$importpubform = &create_form_ul(&create_list_elements(@importpubforma));
         my $extresourcesform =
@@ -4551,12 +4551,14 @@
     return;
 }
 
-function toggleMap() {
+function toggleMap(caller) {
     var disp = 'none';
     if (document.getElementById('importmapform')) {
-        var curr = document.getElementById('importmapform').style.display;
-        if (curr == 'none') {
-            disp='block';
+        if (caller == 'map') {
+            var curr = document.getElementById('importmapform').style.display;
+            if (curr == 'none') {
+                disp='block';
+            }
         }
         document.getElementById('importmapform').style.display=disp;
         resize_scrollbox('contentscroll','1','1');




More information about the LON-CAPA-cvs mailing list