Skip to content

Commit

Permalink
fix(media): Correct Boostrap verson check
Browse files Browse the repository at this point in the history
  • Loading branch information
zooley committed May 2, 2024
1 parent 073f505 commit 8950e3e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/Modules/Media/Resources/assets/js/media.js
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ document.addEventListener('DOMContentLoaded', function () {

hideSpinner();

if (bootstrap && bootstrap.Modal.VERSION < '5') {
if (bootstrap && bootstrap.Modal.VERSION > '5') {
bootstrap.Modal.getInstance(document.getElementById('media-move')).hide();
} else {
$('#media-move').modal('hide');
Expand Down Expand Up @@ -663,7 +663,7 @@ document.addEventListener('DOMContentLoaded', function () {

Dropzone.forElement('.dropzone').removeAllFiles();

if (bootstrap && bootstrap.Modal.VERSION < '5') {
if (bootstrap && bootstrap.Modal.VERSION > '5') {
bootstrap.Modal.getInstance(document.getElementById('media-upload')).hide();
} else {
$('#media-upload').modal('hide');
Expand Down

0 comments on commit 8950e3e

Please sign in to comment.