Bug 425474 After toolbar customize, back and forward buttons display fall below. p=Atsushi Sakai<dev-null@hotmail.co.jp>, r=gavin, bfx3=beltzner

This commit is contained in:
masayuki@d-toybox.com 2008-04-02 05:57:47 -07:00
Родитель 028bf90c45
Коммит dd3b2ac315
1 изменённых файлов: 3 добавлений и 1 удалений

Просмотреть файл

@ -233,7 +233,8 @@ function SetClickAndHoldHandlers()
// Bug 414797: Clone the dropmarker's menu into both the back and
// the forward buttons.
if (document.getElementById("unified-back-forward-button")) {
var unifiedButton = document.getElementById("unified-back-forward-button");
if (unifiedButton && !unifiedButton._clickHandlersAttached) {
var popup = document.getElementById("back-forward-dropmarker")
.firstChild.cloneNode(true);
var backButton = document.getElementById("back-button");
@ -245,6 +246,7 @@ function SetClickAndHoldHandlers()
forwardButton.setAttribute("type", "menu-button");
forwardButton.appendChild(popup);
_addClickAndHoldListenersOnElement(forwardButton);
unifiedButton._clickHandlersAttached = true;
}
}
#endif