mirror of
https://github.com/moodle/moodle.git
synced 2025-07-24 07:41:40 +02:00
navigation MDL-21543 Moved block docking icons next to the show-hide block icon
This commit is contained in:
@@ -1298,9 +1298,12 @@ function block_hider(id, userpref, visibletooltip, hiddentooltip, visibleicon, h
|
||||
// Add the icon.
|
||||
this.icon = document.createElement('input');
|
||||
this.icon.type = 'image';
|
||||
this.icon.className = 'hide-show-image';
|
||||
this.update_state();
|
||||
title_div.insertBefore(this.icon, title_div.firstChild);
|
||||
|
||||
var blockactions = YAHOO.util.Dom.getElementsByClassName('block_action', 'div', title_div);
|
||||
if (blockactions && blockactions[0]) {
|
||||
blockactions[0].insertBefore(this.icon, blockactions[0].firstChild);
|
||||
}
|
||||
|
||||
// Hook up the event handler.
|
||||
YAHOO.util.Event.addListener(this.icon, 'click', this.handle_click, null, this);
|
||||
|
Reference in New Issue
Block a user