Fix checkbox for block images.

This commit is contained in:
blakeross%telocity.com 2002-10-10 01:47:29 +00:00
Родитель 78129fe6da
Коммит 222611e4a6
2 изменённых файлов: 9 добавлений и 3 удалений

Просмотреть файл

@ -321,9 +321,11 @@ Contributor(s):
label="&setWallpaperCmd.label;"
accesskey="&setWallpaperCmd.accesskey;"
oncommand="gContextMenu.setWallpaper();"/>
<!--XXXBlake XUL sucks ass! We need autocheck for menuitems. -->
<menuitem id="context-blockimage"
label="&blockImageCmd.label;" type="checkbox"
oncommand="gContextMenu.toggleImageBlocking(!this.checked);"/>
label="&blockImageCmd.label;" class="menuitem-iconic"
oncommand="gContextMenu.toggleImageBlocking(this.getAttribute('checked') != 'true');"/>
<menuitem id="context-back"
label="&backCmd.label;"
accesskey="&backCmd.accesskey;"

Просмотреть файл

@ -151,7 +151,11 @@ nsContextMenu.prototype = {
this.showItem( "context-blockimage", this.onImage);
if (this.onImage) {
var blockImage = document.getElementById("context-blockimage");
blockImage.checked = this.isImageBlocked();
if (this.isImageBlocked()) {
blockImage.setAttribute("checked", "true");
}
else
blockImage.removeAttribute("checked");
}
},
initClipboardItems : function () {