[svn r16022] fix a javascript bug with swap menu in ie6

skala
Eric Marguin 17 years ago
parent 0132b984da
commit 91acbb2909
  1. 3
      documentation/changelog.html
  2. 23
      main/inc/tool_navigation_menu.inc.php

@ -70,7 +70,8 @@
<li>The learners can't send files anymore to other learners if "Do not allow students to send documents to other students within a course" is false (FS#2780)</li>
<li>The mails sent in exercises tool are sent from the address defined in admin (FS#2712)</li>
<li>"Next" and "Previous" page now works when searching a session (FS#2721)</li>
<li>Fixed bug when launching a quiz with one question per page (FS#2738)</li>
<li>Fixed bug when launching a quiz with one question per page (FS#2738)</li>
<li>fix a javascript bug with swap menu in ie6 (FS#2815)</li>
</ul>
<br />
<h3>Known issues</h3>

@ -1,5 +1,5 @@
<?php
// $Id: tool_navigation_menu.inc.php 14846 2008-04-11 13:05:49Z pcool $
// $Id: tool_navigation_menu.inc.php 16022 2008-08-19 10:10:45Z elixir_inter $
/*
==============================================================================
Dokeos - elearning and course management software
@ -168,21 +168,22 @@ function show_navigation_menu()
}
function swap_menu()
{
toolnavlist = document.getElementById('toolnavlist');
center = document.getElementById('center');
swap_menu_link = document.getElementById('swap_menu_link');
if(toolnavlist.style.display == 'none')
toolnavlist_el = document.getElementById('toolnavlist');
center_el = document.getElementById('center');
swap_menu_link_el = document.getElementById('swap_menu_link');
if(toolnavlist_el.style.display == 'none')
{
toolnavlist.style.display = '';
center.style.margin = '0 190px 0 0';
swap_menu_link.innerHTML = '<?php echo get_lang('Hide'); ?> &raquo;&raquo;';
toolnavlist_el.style.display = '';
center_el.style.margin = '0 190px 0 0';
swap_menu_link_el.innerHTML = '<?php echo get_lang('Hide'); ?> &raquo;&raquo;';
createCookie('dokeos_menu_state',1,10);
}
else
{
toolnavlist.style.display = 'none';
center.style.margin = '0 0 0 0';
swap_menu_link.innerHTML = '&laquo;&laquo; <?php echo get_lang('Show'); ?>';
toolnavlist_el.style.display = 'none';
center_el.style.margin = '0 0 0 0';
swap_menu_link_el.innerHTML = '&laquo;&laquo; <?php echo get_lang('Show'); ?>';
createCookie('dokeos_menu_state',0,10);
}
}

Loading…
Cancel
Save