frayerjj-frontend 0.2.1 → 0.2.3
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 +3 -2
- package/src/session.js +1 -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' }];
|
|
@@ -150,7 +151,7 @@ export const modal = {
|
|
|
150
151
|
bsAjaxModal.show();
|
|
151
152
|
loading.start(ajaxModalBody);
|
|
152
153
|
message.verbose('Loading AJAX Modal');
|
|
153
|
-
ajax({
|
|
154
|
+
window.ajax({
|
|
154
155
|
method: 'GET',
|
|
155
156
|
uri: el.getAttribute('modal-load-uri'),
|
|
156
157
|
json: false,
|
package/src/session.js
CHANGED
|
@@ -21,7 +21,7 @@ export const session = {
|
|
|
21
21
|
},
|
|
22
22
|
// Set a session variable
|
|
23
23
|
set: (varName, val) => {
|
|
24
|
-
message.verbose('Setting Session Variable: ' + varName + ' = ' + val);
|
|
24
|
+
//message.verbose('Setting Session Variable: ' + varName + ' = ' + val);
|
|
25
25
|
sessionStorage.setItem(varName, val);
|
|
26
26
|
},
|
|
27
27
|
// Remove a session variable
|