FIX: ui.flyout .close undefined
This commit is contained in:
parent
26a28191aa
commit
1528e1044e
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -17,11 +17,14 @@ const FlyoutUI = (($) => {
|
|||
class FlyoutUI {
|
||||
static init() {
|
||||
const ui = this;
|
||||
const $close = ui.$modal.find(`.flyout-${NAME}__close`);
|
||||
|
||||
ui.$modal = $(`.flyout-${NAME}`);
|
||||
|
||||
if (ui.$modal.length) {
|
||||
if (!ui.$modal.length) {
|
||||
return false;
|
||||
}
|
||||
|
||||
const $close = ui.$modal.find(`.flyout-${NAME}__close`);
|
||||
ui.$modal.data(NAME, ui);
|
||||
|
||||
if ($close.length) {
|
||||
|
@ -37,7 +40,7 @@ const FlyoutUI = (($) => {
|
|||
ui.show();
|
||||
}, TIMEOUT);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
static show(callback) {
|
||||
|
|
Loading…
Reference in New Issue