Updating the materialize library and calls.

This commit is contained in:
Brian McGonagill 2024-07-22 11:56:35 -05:00
parent a118bf38fc
commit e44ef98be4
17 changed files with 10582 additions and 15529 deletions

View file

@ -1,11 +1,12 @@
import { M } from '../../lib/assets/materialize.js';
Template.myModal.onCreated(function() {
});
Template.myModal.onRendered(function() {
$('.modal').modal();
var elems = document.querySelectorAll('.modal');
var instances = M.Modal.init(elems, {});
});
Template.myModal.helpers({
@ -30,7 +31,7 @@ Template.myModal.events({
} else {
$("#genModal").modal('close');
window[callFunction](functionPassId); // <-- calls the function and passed the Id on confirm.
window[callFunction](functionPassId); // <-- calls the function and passes the Id on confirm.
}
},
'click #cancel' (event) {