frayerjj-frontend 0.2.1 → 0.2.2
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.
- package/package.json +1 -1
- package/src/modal.js +2 -1
package/package.json
CHANGED
package/src/modal.js
CHANGED
|
@@ -129,7 +129,8 @@ export const modal = {
|
|
|
129
129
|
// Cycle through all AJAX Modals in DOM
|
|
130
130
|
document.querySelectorAll('.ajax-modal').forEach(el => {
|
|
131
131
|
message.verbose('Enabling AJAX Modal');
|
|
132
|
-
el.addEventListener('click',
|
|
132
|
+
el.addEventListener('click', ev => {
|
|
133
|
+
ev.preventDefault();
|
|
133
134
|
message.verbose('Building AJAX Modal');
|
|
134
135
|
let buttons;
|
|
135
136
|
if (el.getAttribute('modal-info')) buttons = [{ text: 'OK' }];
|