зеркало из https://github.com/mozilla/pjs.git
bug 60406, r=nhotta, sr=alecf
This commit is contained in:
Родитель
6a44ba717c
Коммит
c6ee9c8192
|
@ -121,11 +121,9 @@ function SetForcedCharset(charset)
|
||||||
function UpdateCurrentCharset()
|
function UpdateCurrentCharset()
|
||||||
{
|
{
|
||||||
var wnd = document.commandDispatcher.focusedWindow;
|
var wnd = document.commandDispatcher.focusedWindow;
|
||||||
if (window == wnd) wnd = window._content;
|
if ((window == wnd) || (wnd == null)) wnd = window._content;
|
||||||
|
|
||||||
var charset = wnd.document.characterSet;
|
var charset = wnd.document.characterSet;
|
||||||
dump("Update current charset: " + charset + "\n");
|
|
||||||
|
|
||||||
var menuitem = document.getElementById('charset.' + charset);
|
var menuitem = document.getElementById('charset.' + charset);
|
||||||
|
|
||||||
if (menuitem) {
|
if (menuitem) {
|
||||||
|
|
Загрузка…
Ссылка в новой задаче