Make "go" button pref do the right thing again. Bug 129686, patch by
caillon@returnzero.com (Christopher Aillon), r=bzbarsky, sr=jag, a=asa git-svn-id: svn://10.0.0.236/trunk@116420 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
cd8f65fca1
commit
1dcd529d1f
@ -78,12 +78,19 @@ const gButtonPrefListener =
|
||||
var buttonId = buttonName + "-button";
|
||||
var button = document.getElementById(buttonId);
|
||||
|
||||
// We need to explicitly set "hidden" to "false"
|
||||
// in order for persistence to work correctly
|
||||
var show = pref.getBoolPref(prefName);
|
||||
button.hidden = !show;
|
||||
if (show)
|
||||
button.setAttribute("hidden","false");
|
||||
else
|
||||
button.setAttribute("hidden", "true");
|
||||
|
||||
// If all buttons before the separator are hidden, also hide the separator
|
||||
var bookmarkSeparator = document.getElementById("home-bm-separator");
|
||||
bookmarkSeparator.hidden = allLeftButtonsAreHidden();
|
||||
if (allLeftButtonsAreHidden())
|
||||
document.getElementById("home-bm-separator").setAttribute("hidden", "true");
|
||||
else
|
||||
document.getElementById("home-bm-separator").removeAttribute("hidden");
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user