Remove the controlbox as a dependency of converse-muc.
This commit is contained in:
parent
1b8ab4c4ec
commit
66242fc2f2
@ -14,9 +14,7 @@
|
||||
"converse-core",
|
||||
"converse-api",
|
||||
"typeahead",
|
||||
"converse-chatview",
|
||||
// XXX: should we remove this dependency?
|
||||
"converse-controlbox"
|
||||
"converse-chatview"
|
||||
], factory);
|
||||
}(this, function (converse, converse_api) {
|
||||
"use strict";
|
||||
@ -204,7 +202,12 @@
|
||||
},
|
||||
|
||||
insertIntoDOM: function () {
|
||||
this.$el.insertAfter(converse.chatboxviews.get("controlbox").$el);
|
||||
var $cbox = converse.chatboxviews.get("controlbox").$el;
|
||||
if ($cbox.length) {
|
||||
this.$el.insertAfter($cbox);
|
||||
} else {
|
||||
$('#conversejs').prepend(this.$el);
|
||||
}
|
||||
return this;
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user