fixed DirectChat toggle

This commit is contained in:
REJack 2019-07-28 21:27:48 +02:00
parent c089bc9796
commit 3fed7f5897
No known key found for this signature in database
GPG key ID: 9F3976CC630CC888
5 changed files with 7 additions and 14 deletions

View file

@ -45,16 +45,13 @@ const DirectChat = (($) => {
static _jQueryInterface(config) {
return this.each(function () {
let data = $(this).data(DATA_KEY)
const _config = $.extend({}, Default, $(this).data())
if (!data) {
data = new DirectChat($(this), _config)
data = new DirectChat($(this))
$(this).data(DATA_KEY, data)
}
if (config === 'init') {
data[config]()
}
data[config]()
})
}
}

8
dist/js/adminlte.js vendored
View file

@ -722,16 +722,12 @@
return this.each(function () {
var data = $(this).data(DATA_KEY);
var _config = $.extend({}, Default, $(this).data());
if (!data) {
data = new DirectChat($(this), _config);
data = new DirectChat($(this));
$(this).data(DATA_KEY, data);
}
if (config === 'init') {
data[config]();
}
data[config]();
});
};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long