mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-07 21:43:24 +00:00
Added charset menu items in view menu.
This commit is contained in:
parent
5256fe9914
commit
28403c158f
@ -140,6 +140,16 @@
|
||||
}
|
||||
}
|
||||
|
||||
function BrowserSetDocumentCharacterSet(aCharset)
|
||||
{
|
||||
appCore = XPAppCoresManager.Find("BrowserAppCore");
|
||||
if (appCore != null) {
|
||||
appCore.SetDocumentCharset(aCharset);
|
||||
} else {
|
||||
dump("BrowserAppCore has not been created!\n");
|
||||
}
|
||||
}
|
||||
|
||||
function BrowserClose()
|
||||
{
|
||||
dump("BrowserClose\n");
|
||||
@ -184,6 +194,11 @@
|
||||
</menu>
|
||||
<menu name="View">
|
||||
<menuitem name="Reload" onclick="BrowserReload();"/>
|
||||
<separator />
|
||||
<menuitem name="Latin1" onclick="BrowserSetDocumentCharacterSet('ISO-8859-1');"/>
|
||||
<menuitem name="ISO-2022-JP" onclick="BrowserSetDocumentCharacterSet('ISO-2022-JP');"/>
|
||||
<menuitem name="Shift_JIS" onclick="BrowserSetDocumentCharacterSet('Shift_JIS');"/>
|
||||
<menuitem name="EUC-JP" onclick="BrowserSetDocumentCharacterSet('EUC-JP');"/>
|
||||
</menu>
|
||||
<menu name="Go">
|
||||
<menuitem name="Back" onclick="BrowserBack();"/>
|
||||
|
Loading…
Reference in New Issue
Block a user