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-core",
|
||||||
"converse-api",
|
"converse-api",
|
||||||
"typeahead",
|
"typeahead",
|
||||||
"converse-chatview",
|
"converse-chatview"
|
||||||
// XXX: should we remove this dependency?
|
|
||||||
"converse-controlbox"
|
|
||||||
], factory);
|
], factory);
|
||||||
}(this, function (converse, converse_api) {
|
}(this, function (converse, converse_api) {
|
||||||
"use strict";
|
"use strict";
|
||||||
@ -204,7 +202,12 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
insertIntoDOM: function () {
|
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;
|
return this;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user