mirror of
https://github.com/moodle/moodle.git
synced 2025-03-20 15:40:17 +01:00
MOre fixes to remove erros due to JS
This commit is contained in:
parent
4418a1125a
commit
670fc5123a
@ -123,7 +123,8 @@ class block_admin_tree extends block_base {
|
||||
|
||||
if ($this->tempcontent !== '') {
|
||||
$this->content = new stdClass;
|
||||
$this->content->text = '<script type="text/javascript">' . "\n\n";
|
||||
$this->content->text = '<script type="text/javascript">'."\n";
|
||||
$this->content->text .= '<!--' . "\n";
|
||||
$this->content->text .= 'var vh_numspans = ' . ($this->spancounter - 1) . ';' . "\n";
|
||||
$this->content->text .= 'var vh_content = new Array();' . "\n";
|
||||
$this->content->text .= 'function getspan(spanid) {' . "\n";
|
||||
@ -166,11 +167,12 @@ class block_admin_tree extends block_base {
|
||||
$this->content->text .= '}' . "\n";
|
||||
|
||||
$this->content->text .= 'function collapseall() {' . "\n";
|
||||
$this->content->text .= ' for (i = vh_numspans; i > 0; i--) {' . "\n";
|
||||
$this->content->text .= ' for (i = vh_numspans; i > 0; i=i-1 ) {' . "\n";
|
||||
$this->content->text .= ' collapse("vh_span" + String(i));' . "\n";
|
||||
$this->content->text .= ' }' . "\n";
|
||||
$this->content->text .= '}' . "\n";
|
||||
|
||||
$this->content->text .= '-->' . "\n";
|
||||
$this->content->text .= '</script>' . "\n";
|
||||
$this->content->text .= '<div align="left">' . "\n";
|
||||
|
||||
@ -178,9 +180,11 @@ class block_admin_tree extends block_base {
|
||||
|
||||
$this->content->text .= '</div>' . "\n";
|
||||
$this->content->text .= '<script type="text/javascript">' . "\n";
|
||||
$this->content->text .= '<!--' . "\n";
|
||||
$this->content->text .= 'collapseall();' . "\n";
|
||||
$this->content->text .= $this->expandjavascript;
|
||||
|
||||
$this->content->text .= '-->' . "\n";
|
||||
$this->content->text .= '</script>' . "\n";
|
||||
|
||||
$searchcontent = isset($CFG->adminsearchquery) ? $CFG->adminsearchquery : '';
|
||||
|
Loading…
x
Reference in New Issue
Block a user