зеркало из https://github.com/mozilla/pjs.git
Fix checkbox for block images.
This commit is contained in:
Родитель
78129fe6da
Коммит
222611e4a6
|
@ -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 () {
|
||||
|
|
Загрузка…
Ссылка в новой задаче