blacklight 7.22.0 → 7.22.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 100a7b0ab6394c96ba5ad5606bffe36132721d9f09c5946911845f117d8bddee
4
- data.tar.gz: a57654c6cdb05add30658903b407d86661a8b975b0af389f84c56736bff2d56c
3
+ metadata.gz: 6db63ed11099851dc7e85c6d2e9e6ec15d39b6a4baec81545625f6362f7eafb7
4
+ data.tar.gz: 35c166e0e26c7e6cbfaf8775338677e3968d91f3ad07335c2cc08f92a710b5f4
5
5
  SHA512:
6
- metadata.gz: dec089984409283e902abf6d3a79c549a1785742396dd6d1e6dbd8ec5b49b1ec5ae4be46cad25eb5bdff663880fce761e023c313f71a020f989f17932492adb4
7
- data.tar.gz: d1bb132cc0ef21f5f9c3a715bf407c47eba801f274d7d78f5e872b6f495298d5bad2720ee89e84944c733babcda22ec62f6d8eed119df9e7ded38b70fd5de1b7
6
+ metadata.gz: d24a44e67f15f30fb674da5102a7ad48401172da23bddaed461f220805429d4816e6912ffe7a069683d4ee2710e478d2e75ab43ff88ddf4caf2f3349ce1a7830
7
+ data.tar.gz: 25e2ad757ecc09eb6b5c3243b012f963894f6829314a7db86393ea4ec826b4b5deb4aeb79ad55cb1084a5043f9e33f39de3640638ce6e8a16f8377ceeea623a3
data/VERSION CHANGED
@@ -1 +1 @@
1
- 7.22.0
1
+ 7.22.1
@@ -442,7 +442,7 @@ Blacklight.modal.checkCloseModal = function (event) {
442
442
 
443
443
  Blacklight.modal.hide = function (el) {
444
444
  if (bootstrap.Modal.VERSION >= "5") {
445
- bootstrap.Modal.getOrCreateInstance(el).hide();
445
+ bootstrap.Modal.getOrCreateInstance(el || document.querySelector(Blacklight.modal.modalSelector)).hide();
446
446
  } else {
447
447
  $(el || Blacklight.modal.modalSelector).modal('hide');
448
448
  }
@@ -450,7 +450,7 @@ Blacklight.modal.hide = function (el) {
450
450
 
451
451
  Blacklight.modal.show = function (el) {
452
452
  if (bootstrap.Modal.VERSION >= "5") {
453
- bootstrap.Modal.getOrCreateInstance(el).show();
453
+ bootstrap.Modal.getOrCreateInstance(el || document.querySelector(Blacklight.modal.modalSelector)).show();
454
454
  } else {
455
455
  $(el || Blacklight.modal.modalSelector).modal('show');
456
456
  }
@@ -207,7 +207,7 @@ Blacklight.modal.checkCloseModal = function(event) {
207
207
 
208
208
  Blacklight.modal.hide = function(el) {
209
209
  if (bootstrap.Modal.VERSION >= "5") {
210
- bootstrap.Modal.getOrCreateInstance(el).hide();
210
+ bootstrap.Modal.getOrCreateInstance(el || document.querySelector(Blacklight.modal.modalSelector)).hide();
211
211
  } else {
212
212
  $(el || Blacklight.modal.modalSelector).modal('hide');
213
213
  }
@@ -215,7 +215,7 @@ Blacklight.modal.hide = function(el) {
215
215
 
216
216
  Blacklight.modal.show = function(el) {
217
217
  if (bootstrap.Modal.VERSION >= "5") {
218
- bootstrap.Modal.getOrCreateInstance(el).show();
218
+ bootstrap.Modal.getOrCreateInstance(el || document.querySelector(Blacklight.modal.modalSelector)).show();
219
219
  } else {
220
220
  $(el || Blacklight.modal.modalSelector).modal('show');
221
221
  }
data/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "blacklight-frontend",
3
- "version": "7.21.2",
3
+ "version": "7.22.0",
4
4
  "description": "[![Build Status](https://travis-ci.com/projectblacklight/blacklight.png?branch=main)](https://travis-ci.com/projectblacklight/blacklight) [![Gem Version](https://badge.fury.io/rb/blacklight.png)](http://badge.fury.io/rb/blacklight) [![Coverage Status](https://coveralls.io/repos/github/projectblacklight/blacklight/badge.svg?branch=main)](https://coveralls.io/github/projectblacklight/blacklight?branch=main)",
5
5
  "main": "app/assets/javascripts/blacklight",
6
6
  "scripts": {
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blacklight
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.22.0
4
+ version: 7.22.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonathan Rochkind
@@ -17,7 +17,7 @@ authors:
17
17
  autorequire:
18
18
  bindir: exe
19
19
  cert_chain: []
20
- date: 2021-12-03 00:00:00.000000000 Z
20
+ date: 2021-12-04 00:00:00.000000000 Z
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency
23
23
  name: rails