Sha256: b3699db5f12c4c18ace5938e5b2c4d28adce19861f04cc196108be74fae44795
Contents?: true
Size: 1.18 KB
Versions: 1
Compression:
Stored size: 1.18 KB
Contents
Harpiya.ready(function($) { var deleteAddressLinks = document.querySelectorAll('.js-delete-address-link'); if (deleteAddressLinks.length > 0) { deleteAddressLinks.forEach(function(deleteLink) { deleteLink.addEventListener('click', function(e) { document.querySelector('#overlay').classList.add('shown'); document.querySelector('#delete-address-popup').classList.add('shown'); document.querySelector('#delete-address-popup-confirm').href = e.currentTarget.dataset.address; }, false) }) } document.querySelector('#overlay').addEventListener('click', function () { var addressActionElement = document.querySelector('#delete-address-popup'); if (addressActionElement) addressActionElement.classList.remove('shown'); }, false); var popupCloseButtons = document.querySelectorAll('.js-delete-address-popup-close-button') if (popupCloseButtons.length > 0) { popupCloseButtons.forEach(function(closeButton) { closeButton.addEventListener('click', function(e) { document.querySelector('#overlay').classList.remove('shown'); document.querySelector('#delete-address-popup').classList.remove('shown'); }) }) } })
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
harpiya_frontend-4.3.0.alpha | app/assets/javascripts/harpiya/frontend/views/harpiya/shared/delete_address_popup.js |