blacklight-frontend 7.22.1 → 7.25.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -441,7 +441,7 @@ Blacklight.modal.checkCloseModal = function (event) {
|
|
|
441
441
|
};
|
|
442
442
|
|
|
443
443
|
Blacklight.modal.hide = function (el) {
|
|
444
|
-
if (bootstrap.Modal.VERSION >= "5") {
|
|
444
|
+
if (typeof bootstrap !== 'undefined' && typeof bootstrap.Modal !== 'undefined' && bootstrap.Modal.VERSION >= "5") {
|
|
445
445
|
bootstrap.Modal.getOrCreateInstance(el || document.querySelector(Blacklight.modal.modalSelector)).hide();
|
|
446
446
|
} else {
|
|
447
447
|
$(el || Blacklight.modal.modalSelector).modal('hide');
|
|
@@ -449,7 +449,7 @@ Blacklight.modal.hide = function (el) {
|
|
|
449
449
|
};
|
|
450
450
|
|
|
451
451
|
Blacklight.modal.show = function (el) {
|
|
452
|
-
if (bootstrap.Modal.VERSION >= "5") {
|
|
452
|
+
if (typeof bootstrap !== 'undefined' && typeof bootstrap.Modal !== 'undefined' && bootstrap.Modal.VERSION >= "5") {
|
|
453
453
|
bootstrap.Modal.getOrCreateInstance(el || document.querySelector(Blacklight.modal.modalSelector)).show();
|
|
454
454
|
} else {
|
|
455
455
|
$(el || Blacklight.modal.modalSelector).modal('show');
|
|
@@ -206,7 +206,7 @@ Blacklight.modal.checkCloseModal = function(event) {
|
|
|
206
206
|
}
|
|
207
207
|
|
|
208
208
|
Blacklight.modal.hide = function(el) {
|
|
209
|
-
if (bootstrap.Modal.VERSION >= "5") {
|
|
209
|
+
if (typeof bootstrap !== 'undefined' && typeof bootstrap.Modal !== 'undefined' && bootstrap.Modal.VERSION >= "5") {
|
|
210
210
|
bootstrap.Modal.getOrCreateInstance(el || document.querySelector(Blacklight.modal.modalSelector)).hide();
|
|
211
211
|
} else {
|
|
212
212
|
$(el || Blacklight.modal.modalSelector).modal('hide');
|
|
@@ -214,7 +214,7 @@ Blacklight.modal.hide = function(el) {
|
|
|
214
214
|
}
|
|
215
215
|
|
|
216
216
|
Blacklight.modal.show = function(el) {
|
|
217
|
-
if (bootstrap.Modal.VERSION >= "5") {
|
|
217
|
+
if (typeof bootstrap !== 'undefined' && typeof bootstrap.Modal !== 'undefined' && bootstrap.Modal.VERSION >= "5") {
|
|
218
218
|
bootstrap.Modal.getOrCreateInstance(el || document.querySelector(Blacklight.modal.modalSelector)).show();
|
|
219
219
|
} else {
|
|
220
220
|
$(el || Blacklight.modal.modalSelector).modal('show');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "blacklight-frontend",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.25.0",
|
|
4
4
|
"description": "[](https://travis-ci.com/projectblacklight/blacklight) [](http://badge.fury.io/rb/blacklight) [](https://coveralls.io/github/projectblacklight/blacklight?branch=main)",
|
|
5
5
|
"main": "app/assets/javascripts/blacklight",
|
|
6
6
|
"scripts": {
|