Bug 1034967 - Regression: Context menu broken over blank space in contact list. r=aleth
This commit is contained in:
Родитель
5e6bbb7350
Коммит
4c0d4a0f33
|
@ -70,14 +70,10 @@ function buddyListContextMenu(aXulMenu) {
|
|||
document.getElementById("context-show-conversation").hidden = !this.onConv && !uiConv;
|
||||
document.getElementById("context-close-conversation-separator").hidden = !this.onConv;
|
||||
document.getElementById("context-close-conversation").hidden = !this.onConv;
|
||||
document.getElementById("context-showlogs").hidden = hide && !this.onConv;
|
||||
|
||||
if (this.onGroup) {
|
||||
document.getElementById("context-hide-tag").disabled =
|
||||
this.target.tag.id == -1;
|
||||
}
|
||||
else {
|
||||
let showLogsItem = document.getElementById("context-showlogs");
|
||||
let showLogsItem = document.getElementById("context-showlogs");
|
||||
let hideShowLogsItem = hide && !this.onConv;
|
||||
showLogsItem.hidden = hideShowLogsItem;
|
||||
if (!hideShowLogsItem) {
|
||||
// Start disabled, then enable if we have logs.
|
||||
showLogsItem.setAttribute("disabled", true);
|
||||
this._getLogs().then(aLogs => {
|
||||
|
@ -86,6 +82,11 @@ function buddyListContextMenu(aXulMenu) {
|
|||
});
|
||||
}
|
||||
|
||||
if (this.onGroup) {
|
||||
document.getElementById("context-hide-tag").disabled =
|
||||
this.target.tag.id == -1;
|
||||
}
|
||||
|
||||
document.getElementById("context-show-offline-buddies-separator").hidden =
|
||||
this.onConv || !hasVisibleBuddies;
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче