mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 16:32:18 +02:00
"MDL-15592, change js function name toggle() to menu_toggle(), to be friendly with prototype.js, merged from MOODLE_19_STABLE"
This commit is contained in:
parent
51471f2ad5
commit
83e6cf2f82
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user