Commit 8b695be4 authored by Florian Cargoët's avatar Florian Cargoët

Fix group visibility on page load.

Close #374
parent 2ede031c
...@@ -3978,7 +3978,7 @@ ...@@ -3978,7 +3978,7 @@
if (contact.showInRoster()) { if (contact.showInRoster()) {
if (this.model.get('state') === CLOSED) { if (this.model.get('state') === CLOSED) {
if (view.$el[0].style.display !== "none") { view.$el.hide(); } if (view.$el[0].style.display !== "none") { view.$el.hide(); }
if (this.$el[0].style.display === "none") { this.$el.show(); } if (!this.$el.is(':visible')) { this.$el.show(); }
} else { } else {
if (this.$el[0].style.display !== "block") { this.show(); } if (this.$el[0].style.display !== "block") { this.show(); }
} }
......
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