From 63134858d70d3cb4d6cafb7bb9d3ca2ddfcd7477 Mon Sep 17 00:00:00 2001 From: ichim-david Date: Sun, 24 Feb 2013 11:31:47 +0200 Subject: [PATCH] Properly hide or show dt that no longer have dd adjacent --- converse.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/converse.js b/converse.js index f5e076ce5..7b444609a 100644 --- a/converse.js +++ b/converse.js @@ -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());