浏览代码

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

updates #83
JC Brand 11 年之前
父节点
当前提交
d5b9af7558
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      converse.js

+ 2 - 2
converse.js

@@ -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});
                 }
             },