mirror of https://github.com/ColorlibHQ/AdminLTE
Fixed ajax loaded BoxWidget #593
parent
a8406b4102
commit
ef2c51694d
|
@ -197,7 +197,7 @@ $(function () {
|
|||
|
||||
//Activate direct chat widget
|
||||
if (o.directChat.enable) {
|
||||
$(o.directChat.contactToggleSelector).on('click', function () {
|
||||
$(document).on('click', o.directChat.contactToggleSelector, function () {
|
||||
var box = $(this).parents('.direct-chat').first();
|
||||
box.toggleClass('direct-chat-contacts-open');
|
||||
});
|
||||
|
@ -541,13 +541,13 @@ function _init() {
|
|||
_box = document; // activate all boxes per default
|
||||
}
|
||||
//Listen for collapse event triggers
|
||||
$(_box).find(_this.selectors.collapse).on('click', function (e) {
|
||||
$(_box).on('click', _this.selectors.collapse, function (e) {
|
||||
e.preventDefault();
|
||||
_this.collapse($(this));
|
||||
});
|
||||
|
||||
//Listen for remove event triggers
|
||||
$(_box).find(_this.selectors.remove).on('click', function (e) {
|
||||
$(_box).on('click', _this.selectors.remove, function (e) {
|
||||
e.preventDefault();
|
||||
_this.remove($(this));
|
||||
});
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue