Skip to content
This repository has been archived by the owner on May 16, 2021. It is now read-only.

Commit

Permalink
Only show the appropriate menu items.
Browse files Browse the repository at this point in the history
  • Loading branch information
djl committed Jun 9, 2011
1 parent 632db6e commit c2e8f1d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/chrome/content/gotourl.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ var gotoURL = {
var menuItems = ['current', 'window', 'tab', 'link-window', 'link-tab'];
for (var i=0; i < menuItems.length; i++) {
var item = document.getElementById('gotourl-' + menuItems[i]);
if (menuItems[i].indexOf("link") == 0){
if (menuItems[i].indexOf("link") == 0) {
item.hidden = !gContextMenu.onLink;
} else {
item.hidden = !gContextMenu.isTextSelected;
item.hidden = !(gContextMenu.isTextSelected && !gContextMenu.onLink);
}
}
},
Expand Down

0 comments on commit c2e8f1d

Please sign in to comment.