From 69387e3b7728143ba10f2b3c900dfc9556cb78dd Mon Sep 17 00:00:00 2001 From: "mconnor%myrealbox.com" Date: Thu, 6 May 2004 23:53:58 +0000 Subject: [PATCH] Bug 207227 remove Bookmark This Page/Save Page As/Send Page from Image Context Menus, patch by Bruce Davidson (Bruce.Davidson@iplbath.com), r=bryner git-svn-id: svn://10.0.0.236/trunk@156051 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/browser/base/content/browser.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mozilla/browser/base/content/browser.js b/mozilla/browser/base/content/browser.js index e5df155371f..5a051c611ce 100644 --- a/mozilla/browser/base/content/browser.js +++ b/mozilla/browser/base/content/browser.js @@ -2866,14 +2866,14 @@ nsContextMenu.prototype = { this.showItem( "context-reload", !( this.isTextSelected || this.onLink || this.onImage || this.onTextInput ) ); this.showItem( "context-stop", !( this.isTextSelected || this.onLink || this.onImage || this.onTextInput ) ); - this.showItem( "context-sep-stop", !( this.isTextSelected || this.onLink || this.onTextInput ) ); + this.showItem( "context-sep-stop", !( this.isTextSelected || this.onLink || this.onTextInput || this.onImage ) ); // XXX: Stop is determined in navigator.js; the canStop broadcaster is broken //this.setItemAttrFromNode( "context-stop", "disabled", "canStop" ); }, initSaveItems : function () { - this.showItem( "context-savepage", !( this.inDirList || this.isTextSelected || this.onTextInput || this.onLink )); - this.showItem( "context-sendpage", !( this.inDirList || this.isTextSelected || this.onTextInput || this.onLink )); + this.showItem( "context-savepage", !( this.inDirList || this.isTextSelected || this.onTextInput || this.onLink || this.onImage )); + this.showItem( "context-sendpage", !( this.inDirList || this.isTextSelected || this.onTextInput || this.onLink || this.onImage )); // Save link depends on whether we're in a link. this.showItem( "context-savelink", this.onSaveableLink ); @@ -2912,7 +2912,7 @@ nsContextMenu.prototype = { }, initMiscItems : function () { // Use "Bookmark This Link" if on a link. - this.showItem( "context-bookmarkpage", !( this.isTextSelected || this.onTextInput || this.onLink ) ); + this.showItem( "context-bookmarkpage", !( this.isTextSelected || this.onTextInput || this.onLink || this.onImage ) ); this.showItem( "context-bookmarklink", this.onLink && !this.onMailtoLink ); this.showItem( "context-searchselect", this.isTextSelected ); this.showItem( "context-keywordfield", this.onTextInput && this.onKeywordField );