blacklight-frontend
Advanced tools
Comparing version 8.0.0-beta.4 to 8.0.0-beta.5
@@ -195,3 +195,3 @@ const Blacklight = function() { | ||
<div class="modal-header"> | ||
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> | ||
<button type="button" class="close" data-bl-dismiss="modal" aria-hidden="true">×</button> | ||
<h3 class="modal-title">Request Placed</h3> | ||
@@ -207,3 +207,3 @@ </div> | ||
<div class="modal-footer"> | ||
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button> | ||
<button type="button" class="btn btn-secondary" data-bl-dismiss="modal">Close</button> | ||
</div> | ||
@@ -252,3 +252,3 @@ </div> | ||
<div class="modal-title">There was a problem with your request.</div> | ||
<button type="button" class="blacklight-modal-close btn-close close" data-dismiss="modal" data-bs-dismiss="modal" aria-label="Close"> | ||
<button type="button" class="blacklight-modal-close btn-close close" data-bl-dismiss="modal" aria-label="Close"> | ||
<span aria-hidden="true" class="visually-hidden">×</span> | ||
@@ -303,5 +303,5 @@ </button> | ||
document.addEventListener('click', (e) => { | ||
if (e.target.matches(`${modal.triggerLinkSelector}, ${modal.preserveLinkSelector}`)) | ||
if (e.target.closest(`${modal.triggerLinkSelector}, ${modal.preserveLinkSelector}`)) | ||
modal.modalAjaxLinkClick(e); | ||
else if (e.target.matches('[data-bl-dismiss="modal"]')) | ||
else if (e.target.closest('[data-bl-dismiss="modal"]')) | ||
modal.hide(); | ||
@@ -308,0 +308,0 @@ }); |
@@ -201,3 +201,3 @@ (function (global, factory) { | ||
<div class="modal-header"> | ||
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> | ||
<button type="button" class="close" data-bl-dismiss="modal" aria-hidden="true">×</button> | ||
<h3 class="modal-title">Request Placed</h3> | ||
@@ -213,3 +213,3 @@ </div> | ||
<div class="modal-footer"> | ||
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button> | ||
<button type="button" class="btn btn-secondary" data-bl-dismiss="modal">Close</button> | ||
</div> | ||
@@ -258,3 +258,3 @@ </div> | ||
<div class="modal-title">There was a problem with your request.</div> | ||
<button type="button" class="blacklight-modal-close btn-close close" data-dismiss="modal" data-bs-dismiss="modal" aria-label="Close"> | ||
<button type="button" class="blacklight-modal-close btn-close close" data-bl-dismiss="modal" aria-label="Close"> | ||
<span aria-hidden="true" class="visually-hidden">×</span> | ||
@@ -309,5 +309,5 @@ </button> | ||
document.addEventListener('click', (e) => { | ||
if (e.target.matches(`${modal.triggerLinkSelector}, ${modal.preserveLinkSelector}`)) | ||
if (e.target.closest(`${modal.triggerLinkSelector}, ${modal.preserveLinkSelector}`)) | ||
modal.modalAjaxLinkClick(e); | ||
else if (e.target.matches('[data-bl-dismiss="modal"]')) | ||
else if (e.target.closest('[data-bl-dismiss="modal"]')) | ||
modal.hide(); | ||
@@ -314,0 +314,0 @@ }); |
{ | ||
"name": "blacklight-frontend", | ||
"version": "8.0.0-beta.4", | ||
"version": "8.0.0-beta.5", | ||
"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,0 +5,0 @@ "main": "app/assets/javascripts/blacklight", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
104053