From ea469e0fc5ba079bc6a24aefa8db34abce09d319 Mon Sep 17 00:00:00 2001 From: mokaddem Date: Thu, 16 Sep 2021 15:53:59 +0200 Subject: [PATCH] fix: [helpers:bootstrap] Fixed missing variable definition --- webroot/js/bootstrap-helper.js | 20 ++------------------ 1 file changed, 2 insertions(+), 18 deletions(-) diff --git a/webroot/js/bootstrap-helper.js b/webroot/js/bootstrap-helper.js index 6c4176b..b2e1a89 100644 --- a/webroot/js/bootstrap-helper.js +++ b/webroot/js/bootstrap-helper.js @@ -813,11 +813,7 @@ class OverlayFactory { constructor(node, options={}) { this.node = node this.$node = $(this.node) - if (darkMode) { - this.options = Object.assign({}, OverlayFactory.defaultOptionsDarkTheme, options) - } else { - this.options = Object.assign({}, OverlayFactory.defaultOptions, options) - } + this.options = Object.assign({}, OverlayFactory.defaultOptions, options) this.options.auto = options.auto ? this.options.auto : !(options.variant || options.spinnerVariant) if (this.options.auto) { this.adjustOptionsBasedOnNode() @@ -835,18 +831,6 @@ class OverlayFactory { * @property {boolean} spinnerSmall - If the spinner inside the overlay should be small * @property {string=('border'|'grow')} spinnerSmall - If the spinner inside the overlay should be small */ - static defaultOptionsDarkTheme = { - text: '', - variant: 'light', - opacity: 0.25, - blur: '2px', - rounded: false, - auto: true, - spinnerVariant: '', - spinnerSmall: false, - spinnerType: 'border', - fallbackBoostrapVariant: 'light' - } static defaultOptions = { text: '', variant: 'light', @@ -862,7 +846,7 @@ class OverlayFactory { static overlayWrapper = '
' static overlayContainer = '
' - static overlayBg = '
' + static overlayBg = '
' static overlaySpinner = '
' static overlayText = ''