瀏覽代碼

Properly hide or show dt that no longer have dd adjacent

ichim-david 12 年之前
父節點
當前提交
63134858d7
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. 4 1
      converse.js

+ 4 - 1
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());