Bug 1034967 - Regression: Context menu broken over blank space in contact list. r=aleth

This commit is contained in:
Nihanth Subramanya 2014-07-08 02:27:42 +05:30
Родитель 5e6bbb7350
Коммит 4c0d4a0f33
1 изменённых файлов: 9 добавлений и 8 удалений

Просмотреть файл

@ -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 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;