fixed DirectChat toggle
This commit is contained in:
parent
c089bc9796
commit
3fed7f5897
|
@ -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
8
dist/js/adminlte.js
vendored
|
@ -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]();
|
||||
});
|
||||
};
|
||||
|
||||
|
|
2
dist/js/adminlte.js.map
vendored
2
dist/js/adminlte.js.map
vendored
File diff suppressed because one or more lines are too long
2
dist/js/adminlte.min.js
vendored
2
dist/js/adminlte.min.js
vendored
File diff suppressed because one or more lines are too long
2
dist/js/adminlte.min.js.map
vendored
2
dist/js/adminlte.min.js.map
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue