|
|
@ -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));
|
|
|
|
});
|
|
|
|
});
|
|
|
|