From 5b1675f4203660ddf44333efaf71a40423667dc0 Mon Sep 17 00:00:00 2001 From: vyshane Date: Mon, 11 Dec 2006 07:15:30 +0000 Subject: [PATCH] Fix for MDL-7493. Added html id attribute for the image button used to toggle hide and show for blocks. This is used by javascript to replace the image on the fly. --- blocks/moodleblock.class.php | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/blocks/moodleblock.class.php b/blocks/moodleblock.class.php index 1fa9c43e2d..6cbd9468dc 100644 --- a/blocks/moodleblock.class.php +++ b/blocks/moodleblock.class.php @@ -245,11 +245,6 @@ class block_base { // The full treatment, please. Include the title text. print_side_block($this->_title_html(), $this->content->text, NULL, NULL, $this->content->footer, $this->html_attributes(), $this->title); } - - //make a record of the block for the ajax course format to use - if (!empty($COURSE->javascriptportal)) { - $COURSE->javascriptportal->block_add('inst'.$this->instance->id,!$this->instance->visible); - } } } @@ -272,7 +267,14 @@ class block_base { if (!empty($CFG->allowuserblockhiding)) { //Accessibility: added static 'alt' text for the +- icon. //TODO (nfreear): language string 'hide OR show block' - $title .= '
'.get_string('showhideblock','access').'
'; + $title .= '
'. + ''. + '
'; } //Accesssibility: added H2 (was in, weblib.php: print_side_block) @@ -283,7 +285,6 @@ class block_base { } $title .= ''; - return $title; } @@ -706,11 +707,6 @@ class block_list extends block_base { print_side_block($this->_title_html(), '', $this->content->items, $this->content->icons, $this->content->footer, $this->html_attributes(), $this->title); } - - //make a record of the block for the ajax course format to use - if (!empty($COURSE->javascriptportal)) { - $COURSE->javascriptportal->block_add('inst'.$this->instance->id,!$this->instance->visible); - } } } -- 2.39.5