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,27 +17,30 @@ 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) {
|
||||
ui.$modal.data(NAME, ui);
|
||||
|
||||
if ($close.length) {
|
||||
$close.on('click', () => {
|
||||
ui.hide();
|
||||
});
|
||||
}
|
||||
|
||||
const hide = CookieUI.get(COOKIE);
|
||||
|
||||
if (!$close.length || !hide || hide !== 'true') {
|
||||
setTimeout(() => {
|
||||
ui.show();
|
||||
}, TIMEOUT);
|
||||
}
|
||||
if (!ui.$modal.length) {
|
||||
return false;
|
||||
}
|
||||
|
||||
const $close = ui.$modal.find(`.flyout-${NAME}__close`);
|
||||
ui.$modal.data(NAME, ui);
|
||||
|
||||
if ($close.length) {
|
||||
$close.on('click', () => {
|
||||
ui.hide();
|
||||
});
|
||||
}
|
||||
|
||||
const hide = CookieUI.get(COOKIE);
|
||||
|
||||
if (!$close.length || !hide || hide !== 'true') {
|
||||
setTimeout(() => {
|
||||
ui.show();
|
||||
}, TIMEOUT);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
static show(callback) {
|
||||
|
Loading…
Reference in New Issue
Block a user