[LON-CAPA-cvs] cvs: modules /gci londocsgci.pm

gci gci@source.lon-capa.org
Sun, 19 Sep 2010 14:48:53 -0000


gci		Sun Sep 19 14:48:53 2010 EDT

  Modified files:              
    /modules/gci	londocsgci.pm 
  Log:
  - Customization for GCI_3.
    - Set block style in div tag directly instead of via javascript in onload call. 
  
  
Index: modules/gci/londocsgci.pm
diff -u modules/gci/londocsgci.pm:1.12 modules/gci/londocsgci.pm:1.13
--- modules/gci/londocsgci.pm:1.12	Tue Sep 14 06:23:15 2010
+++ modules/gci/londocsgci.pm	Sun Sep 19 14:48:53 2010
@@ -2,7 +2,7 @@
 # Custom Edit Course Routines for Assembly of Valid Concept Tests from
 # Geoscience Concept Inventory. 
 #
-# $Id: londocsgci.pm,v 1.12 2010/09/14 06:23:15 gci Exp $
+# $Id: londocsgci.pm,v 1.13 2010/09/19 14:48:53 gci Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -316,7 +316,7 @@
     $output .= '<span id="'.$titleid.'">'.
               '<a href="javascript:showQuestions('."'$fieldid','$titleid'".')">'.
               &mt('Show').'</a> ...</span><br />'.
-              '<div id="'.$fieldid.'">'.
+              '<div id="'.$fieldid.'" style="display: none">'.
               &Apache::loncommon::start_data_table().
               &Apache::loncommon::start_data_table_header_row();
     unless (($catname eq 'development') || ($catname eq 'mandatory')) {
@@ -675,26 +675,6 @@
     return;
 }
 
-function setInitialVisibility() {
-    if (document.getElementById('GCI_mandatory_q') == null) {
-        return;
-    }
-    document.getElementById('GCI_mandatory_q').style.display = "none";
-    document.getElementById('GCI_bin0_q').style.display = "none";
-    document.getElementById('GCI_bin1_q').style.display = "none";
-    document.getElementById('GCI_bin2_q').style.display = "none";
-    document.getElementById('GCI_bin3_q').style.display = "none";
-    document.getElementById('GCI_bin4_q').style.display = "none";
-    document.getElementById('GCI_bin5_q').style.display = "none";
-    document.getElementById('GCI_bin6_q').style.display = "none";
-    document.getElementById('GCI_bin7_q').style.display = "none";
-    document.getElementById('GCI_bin8_q').style.display = "none";
-    document.getElementById('GCI_bin9_q').style.display = "none";
-    document.getElementById('GCI_bin10_q').style.display = "none";
-    document.getElementById('GCI_optional_q').style.display = "none";
-    document.getElementById('GCI_development_q').style.display = "none";
-}
-
 function countChecked(binname) {
     var count = 0;
     for (var i=0; i<document.selecteditems.elements.length; i++) {