mirror of
https://github.com/a2nt/webpack-bootstrap-ui-kit.git
synced 2024-10-22 11:05:45 +02:00
FIX: ui.flyout .close undefined
This commit is contained in:
parent
26a28191aa
commit
1528e1044e
2
dist/js/app.js
vendored
2
dist/js/app.js
vendored
File diff suppressed because one or more lines are too long
2
dist/js/app.js.map
vendored
2
dist/js/app.js.map
vendored
File diff suppressed because one or more lines are too long
@ -17,11 +17,14 @@ const FlyoutUI = (($) => {
|
|||||||
class FlyoutUI {
|
class FlyoutUI {
|
||||||
static init() {
|
static init() {
|
||||||
const ui = this;
|
const ui = this;
|
||||||
const $close = ui.$modal.find(`.flyout-${NAME}__close`);
|
|
||||||
|
|
||||||
ui.$modal = $(`.flyout-${NAME}`);
|
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);
|
ui.$modal.data(NAME, ui);
|
||||||
|
|
||||||
if ($close.length) {
|
if ($close.length) {
|
||||||
@ -37,7 +40,7 @@ const FlyoutUI = (($) => {
|
|||||||
ui.show();
|
ui.show();
|
||||||
}, TIMEOUT);
|
}, TIMEOUT);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static show(callback) {
|
static show(callback) {
|
||||||
|
Loading…
Reference in New Issue
Block a user