From 77b46712e90e5cf7ebd64bd147a1d10053db0ea4 Mon Sep 17 00:00:00 2001 From: Ian Neal Date: Mon, 23 Apr 2012 18:22:31 +0100 Subject: [PATCH] Bug 747765 - Cannot add/remove Print icon in Composer toolbar r=Neil --- editor/ui/composer/content/editor.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/editor/ui/composer/content/editor.js b/editor/ui/composer/content/editor.js index cfaefdb344..237c0fb678 100644 --- a/editor/ui/composer/content/editor.js +++ b/editor/ui/composer/content/editor.js @@ -126,8 +126,9 @@ function ShowHideToolbarButtons() var array = gPrefs.getChildList(kEditorToolbarPrefs); for (var i in array) { var prefName = array[i]; - var id = prefName.substr(kEditorToolbarPrefs.length) + "Button"; - var button = document.getElementById(id); + var id = prefName.substr(kEditorToolbarPrefs.length); + var button = document.getElementById(id + "Button") || + document.getElementById(id + "-button"); if (button) button.hidden = !gPrefs.getBoolPref(prefName); }