Commit d5b9af75 authored by JC Brand's avatar JC Brand

Bugfix. Make sure group toggle state is persisted to browser storage.

updates #83
parent be1d1f66
......@@ -3280,11 +3280,11 @@
var $el = $(ev.target);
this.$el.nextUntil('dt').slideToggle();
if ($el.hasClass("icon-opened")) {
this.model.set({state: CLOSED});
this.model.save({state: CLOSED});
$el.removeClass("icon-opened").addClass("icon-closed");
} else {
$el.removeClass("icon-closed").addClass("icon-opened");
this.model.set({state: OPENED});
this.model.save({state: OPENED});
}
},
......
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