mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 05:41:12 +00:00
Bug 956657 Followup tweak r=Unfocused
This commit is contained in:
parent
9662b1ad04
commit
599e862904
@ -203,7 +203,7 @@
|
||||
accesskey="&charsetMenu.accesskey;"
|
||||
oncommand="BrowserSetCharacterSet(event);"
|
||||
onpopupshowing="CharsetMenu.build(event.target);"
|
||||
onpopupshown="CharsetMenu.update(event, content.document.characterSet);">
|
||||
onpopupshown="CharsetMenu.update(event.target, content.document.characterSet);">
|
||||
<menupopup/>
|
||||
</menu>
|
||||
<menuseparator/>
|
||||
|
@ -250,8 +250,8 @@ let CharsetMenu = {
|
||||
}
|
||||
},
|
||||
|
||||
update: function(event, charset) {
|
||||
let menuitem = event.target.getElementsByAttribute("charset", this.foldCharset(charset)).item(0);
|
||||
update: function(parent, charset) {
|
||||
let menuitem = parent.getElementsByAttribute("charset", this.foldCharset(charset)).item(0);
|
||||
if (menuitem) {
|
||||
menuitem.setAttribute("checked", "true");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user