[LON-CAPA-cvs] cvs: loncom /interface loncommon.pm londocs.pm
tempelho
tempelho@source.lon-capa.org
Wed, 08 Jul 2009 07:51:01 -0000
tempelho Wed Jul 8 07:51:01 2009 EDT
Modified files:
/loncom/interface londocs.pm loncommon.pm
Log:
londocs:
- Changed action of the re-initializing form. Now it works and the button disappears after pushing.
- Added the class "clear" to the main tabs LC_Box for a better look.
- Completed the javascript function showPage.
loncommon:
- Making changes in .clear css class for a better multiple usage.
Index: loncom/interface/londocs.pm
diff -u loncom/interface/londocs.pm:1.374 loncom/interface/londocs.pm:1.375
--- loncom/interface/londocs.pm:1.374 Wed Jul 1 13:16:42 2009
+++ loncom/interface/londocs.pm Wed Jul 8 07:51:01 2009
@@ -1,7 +1,7 @@
# The LearningOnline Network
# Documents
#
-# $Id: londocs.pm,v 1.374 2009/07/01 13:16:42 tempelho Exp $
+# $Id: londocs.pm,v 1.375 2009/07/08 07:51:01 tempelho Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -2507,7 +2507,7 @@
'function reinit(tf) { tf.submit();'.$postexec.' }'."\n".
'// ]]>'."\n".
'</script>'."\n".
-'<form name="reinitform" method="post" action="/adm/coursedocs" target="loncapaclient">'.
+'<form name="reinitform" method="post" action="/adm/roles" target="loncapaclient">'.
'<input type="hidden" name="orgurl" value="'.$url.
'" /><input type="hidden" name="selectrole" value="1" /><p class="LC_warning">'.
&mt($message,' <input type="hidden" name="'.
@@ -2933,7 +2933,7 @@
}
}
$r->print('<li '.$active.' onclick="javascript:showPage(this,\'supplCourseDocuments\',\'mainnav\',\'maincoursedoc\');">'.&mt('Supplemental Course Documents').'</li>');
- $r->print('</ul><div class="LC_Box"><div id="maincoursedoc" style="margin:0 0;padding:0 0;">');
+ $r->print('</ul><div class="clear LC_Box"><div id="maincoursedoc" style="margin:0 0;padding:0 0;">');
# --------------------------------------------------------- Standard documents
my $savefolderpath;
my $active = 'style="display: none;"';
@@ -3646,15 +3646,18 @@
currentLis = currentNav.getElementsByTagName('LI');
for(i = 0; i< currentLis.length; i++){
if(currentLis[i].className == 'active') {
- currentLis[i].onclick;
+ funcString = currentLis[i].onclick.toString();
+ tab = funcString.split('"');
+ currentData = document.getElementById(tab[1]);
+ currentData.style.display = 'block';
}
}
}
}
function showPage(current, pageId, nav, data) {
- /*openTabs(pageId);*/
hideAll(current, nav, data);
+ openTabs(pageId);
unselectInactive(nav);
current.className = 'active';
currentData = document.getElementById(pageId);
Index: loncom/interface/loncommon.pm
diff -u loncom/interface/loncommon.pm:1.850 loncom/interface/loncommon.pm:1.851
--- loncom/interface/loncommon.pm:1.850 Mon Jul 6 15:29:31 2009
+++ loncom/interface/loncommon.pm Wed Jul 8 07:51:01 2009
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# a pile of common routines
#
-# $Id: loncommon.pm,v 1.850 2009/07/06 15:29:31 bisitz Exp $
+# $Id: loncommon.pm,v 1.851 2009/07/08 07:51:01 tempelho Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -6098,9 +6098,7 @@
.clear {
clear: both;
- line-height: 0;
- font-size: 0;
- height: 0;
+ margin: 0;
}
.LC_loginpage_container {