Bug 999993 - netmonitor shows useless context menu separator. r=vporof

This commit is contained in:
Veeti Paananen 2014-06-24 01:42:08 +03:00
parent 487f39bd82
commit 43f3dec08a
2 changed files with 4 additions and 1 deletions

View File

@ -1622,6 +1622,9 @@ RequestsMenuView.prototype = Heritage.extend(WidgetMethods, {
!selectedItem.attachment.responseContent ||
!selectedItem.attachment.responseContent.content.mimeType.contains("image/");
let separator = $("#request-menu-context-separator");
separator.hidden = !selectedItem;
let newTabElement = $("#request-menu-context-newtab");
newTabElement.hidden = !selectedItem;
},

View File

@ -38,7 +38,7 @@
<menuitem id="request-menu-context-resend"
label="&netmonitorUI.summary.editAndResend;"
accesskey="&netmonitorUI.summary.editAndResend.accesskey;"/>
<menuseparator/>
<menuseparator id="request-menu-context-separator"/>
<menuitem id="request-menu-context-perf"
label="&netmonitorUI.context.perfTools;"
accesskey="&netmonitorUI.context.perfTools.accesskey;"/>