Bug 133842: Accesskey 'B' was incorrectly applied to every item in the View > Use Style menu. Patch by fantasai@escape.com, r=jag, sr=alecf, a=asa.

git-svn-id: svn://10.0.0.236/trunk@117758 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
caillon%returnzero.com 2002-03-31 02:13:19 +00:00
parent 5434ff0201
commit 8425aa9659

View File

@ -1314,7 +1314,8 @@ function stylesheetFillPopup(menuPopup)
lastWithSameTitle = currentStyleSheets[currentStyleSheet.title];
if (!lastWithSameTitle) {
var menuItem = itemNoOptStyles.cloneNode(false);
var menuItem = document.createElement("menuitem");
menuItem.setAttribute("type", "radio");
menuItem.setAttribute("label", currentStyleSheet.title);
menuItem.setAttribute("data", currentStyleSheet.title);
menuItem.setAttribute("checked", !currentStyleSheet.disabled);