Let the headline plugin work without dragresize
This commit is contained in:
parent
5b80d67a98
commit
600650a4c7
@ -76,8 +76,11 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
initialize: function () {
|
initialize: function () {
|
||||||
this.disable_mam = true; // Don't do MAM queries for this box
|
if (typeof this.setDimensions !== "undefined") {
|
||||||
|
// setDimensions is defined for dragresize
|
||||||
$(window).on('resize', _.debounce(this.setDimensions.bind(this), 100));
|
$(window).on('resize', _.debounce(this.setDimensions.bind(this), 100));
|
||||||
|
}
|
||||||
|
this.disable_mam = true; // Don't do MAM queries for this box
|
||||||
this.model.messages.on('add', this.onMessageAdded, this);
|
this.model.messages.on('add', this.onMessageAdded, this);
|
||||||
this.model.on('show', this.show, this);
|
this.model.on('show', this.show, this);
|
||||||
this.model.on('destroy', this.hide, this);
|
this.model.on('destroy', this.hide, this);
|
||||||
@ -101,7 +104,10 @@
|
|||||||
)
|
)
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
this.setWidth();
|
if (typeof this.setWidth !== "undefined") {
|
||||||
|
// setWidth is defined for dragresize
|
||||||
|
$(window).on('resize', _.debounce(this.setWidth.bind(this), 100));
|
||||||
|
}
|
||||||
this.$content = this.$el.find('.chat-content');
|
this.$content = this.$el.find('.chat-content');
|
||||||
converse.emit('chatBoxOpened', this);
|
converse.emit('chatBoxOpened', this);
|
||||||
window.setTimeout(utils.refreshWebkit, 50);
|
window.setTimeout(utils.refreshWebkit, 50);
|
||||||
|
Loading…
Reference in New Issue
Block a user