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 = ''