Bugfix. If controlbox is not there, undefined is returned.:wq
This commit is contained in:
parent
70135ba070
commit
70f1570984
@ -214,9 +214,9 @@
|
||||
},
|
||||
|
||||
insertIntoDOM: function () {
|
||||
var $cbox = converse.chatboxviews.get("controlbox").$el;
|
||||
if ($cbox.length) {
|
||||
this.$el.insertAfter($cbox);
|
||||
var view = converse.chatboxviews.get("controlbox");
|
||||
if (view) {
|
||||
this.$el.insertAfter(view.$el);
|
||||
} else {
|
||||
$('#conversejs').prepend(this.$el);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user