Bugfix. Handle case where controlbox plugin is not loaded.
This commit is contained in:
parent
6f1ac50893
commit
7b003f1d9a
|
@ -341,7 +341,9 @@
|
|||
})).hide();
|
||||
this.model.each(this.renderBookmarkListElement, this);
|
||||
var controlboxview = converse.chatboxviews.get('controlbox');
|
||||
this.$el.prependTo(controlboxview.$('#chatrooms'));
|
||||
if (!_.isUndefined(controlboxview)) {
|
||||
this.$el.prependTo(controlboxview.$('#chatrooms'));
|
||||
}
|
||||
return this.$el;
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user