Fixed ajax loaded BoxWidget #593

pull/555/merge
Abdullah Almsaeed 9 years ago
parent a8406b4102
commit ef2c51694d

6
dist/js/app.js vendored

@ -197,7 +197,7 @@ $(function () {
//Activate direct chat widget //Activate direct chat widget
if (o.directChat.enable) { if (o.directChat.enable) {
$(o.directChat.contactToggleSelector).on('click', function () { $(document).on('click', o.directChat.contactToggleSelector, function () {
var box = $(this).parents('.direct-chat').first(); var box = $(this).parents('.direct-chat').first();
box.toggleClass('direct-chat-contacts-open'); box.toggleClass('direct-chat-contacts-open');
}); });
@ -541,13 +541,13 @@ function _init() {
_box = document; // activate all boxes per default _box = document; // activate all boxes per default
} }
//Listen for collapse event triggers //Listen for collapse event triggers
$(_box).find(_this.selectors.collapse).on('click', function (e) { $(_box).on('click', _this.selectors.collapse, function (e) {
e.preventDefault(); e.preventDefault();
_this.collapse($(this)); _this.collapse($(this));
}); });
//Listen for remove event triggers //Listen for remove event triggers
$(_box).find(_this.selectors.remove).on('click', function (e) { $(_box).on('click', _this.selectors.remove, function (e) {
e.preventDefault(); e.preventDefault();
_this.remove($(this)); _this.remove($(this));
}); });

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save