Commit 7b003f1d authored by JC Brand's avatar JC Brand

Bugfix. Handle case where controlbox plugin is not loaded.

parent 6f1ac508
......@@ -341,7 +341,9 @@
})).hide();
this.model.each(this.renderBookmarkListElement, this);
var controlboxview = converse.chatboxviews.get('controlbox');
if (!_.isUndefined(controlboxview)) {
this.$el.prependTo(controlboxview.$('#chatrooms'));
}
return this.$el;
},
......
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