Commit 63134858 authored by ichim-david's avatar ichim-david

Properly hide or show dt that no longer have dd adjacent

parent 19caf7c4
......@@ -1670,9 +1670,12 @@
}
// Hide the headings if there are no contacts under them
_.each([$my_contacts, $contact_requests, $pending_contacts], function (h) {
if (h.nextUntil('dt').length && !h.is(':visible')) {
if (h.nextUntil('dt').length) {
h.show();
}
else {
h.hide();
}
});
$count = $('#online-count');
$count.text(this.model.getNumOnlineContacts());
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment