mirror of https://github.com/ColorlibHQ/AdminLTE
fixed DirectChat toggle
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]()
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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
Loading…
Reference in New Issue