]> git.mjollnir.org Git - moodle.git/commitdiff
"MDL-15592, change js function name toggle() to menu_toggle(), to be friendly with...
authordongsheng <dongsheng>
Thu, 10 Jul 2008 09:36:07 +0000 (09:36 +0000)
committerdongsheng <dongsheng>
Thu, 10 Jul 2008 09:36:07 +0000 (09:36 +0000)
blocks/admin_tree/block_admin_tree.php

index 53c041cd29920afccbf86d0407f75fd87ba40434..32494c97b6f02613f64e98c0050cf4873808a107 100644 (file)
@@ -37,7 +37,7 @@ class block_admin_tree extends block_base {
         global $CFG;
         $strfolderopened = s(get_string('folderopened'));
 
-        $this->tempcontent .= '<div class="depth'.$this->currentdepth.'"><a href="#" onclick="toggle(\''.$this->divcounter.'\');return false">';
+        $this->tempcontent .= '<div class="depth'.$this->currentdepth.'"><a href="#" onclick="menu_toggle(\''.$this->divcounter.'\');return false">';
         $this->tempcontent .= '<span id="vh_div'.$this->divcounter.'indicator"><img src="'.$CFG->pixpath.'/i/open.gif" alt="'.$strfolderopened.'" /></span> ';
         $this->tempcontent .= $visiblename.'</a></div><div id="vh_div'.$this->divcounter.'">'."\n";
         $this->currentdepth++;
@@ -145,7 +145,7 @@ for (var i=1; i<=vh_numdivs; i++) {
     parkplatz[i] = null;
 }
 
-function toggle(i) {
+function menu_toggle(i) {
     i = parseInt(i);
     if (parkplatz[i] === null) {
         collapse(i);