navigation MDL-21543 Moved block docking icons next to the show-hide block icon

This commit is contained in:
Sam Hemelryk
2010-02-24 08:12:17 +00:00
parent b0fef57b1b
commit 46de77b6b7
7 changed files with 50 additions and 69 deletions

View File

@@ -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);