diff --git a/client/Accounts/UserMgmt/userInfoModal.html b/client/Accounts/UserMgmt/userInfoModal.html index 0ef88a5..8d8e441 100644 --- a/client/Accounts/UserMgmt/userInfoModal.html +++ b/client/Accounts/UserMgmt/userInfoModal.html @@ -1,25 +1,24 @@ \ No newline at end of file diff --git a/client/Accounts/UserMgmt/userInfoModal.js b/client/Accounts/UserMgmt/userInfoModal.js index 5fac19d..9505e68 100644 --- a/client/Accounts/UserMgmt/userInfoModal.js +++ b/client/Accounts/UserMgmt/userInfoModal.js @@ -1,3 +1,5 @@ +import { M } from '../../lib/assets/materialize.js'; + Template.userInfoModal.onCreated(function() { }); @@ -5,7 +7,8 @@ Template.userInfoModal.onCreated(function() { Template.userInfoModal.onRendered(function() { Session.set("passMatch", true); Session.set("passErr", false); - $('.modal').modal(); + var elems = document.querySelectorAll('.modal'); + var instances = M.Modal.init(elems, {}); }); Template.userInfoModal.helpers({ diff --git a/client/Accounts/UserMgmt/userMgmt.html b/client/Accounts/UserMgmt/userMgmt.html index 9cd438a..83314de 100644 --- a/client/Accounts/UserMgmt/userMgmt.html +++ b/client/Accounts/UserMgmt/userMgmt.html @@ -20,8 +20,8 @@ {{userRole}}
- delete - edit + delete + edit
diff --git a/client/Accounts/UserMgmt/userMgmt.js b/client/Accounts/UserMgmt/userMgmt.js index 3052211..95cc9ae 100644 --- a/client/Accounts/UserMgmt/userMgmt.js +++ b/client/Accounts/UserMgmt/userMgmt.js @@ -1,12 +1,15 @@ - +import { M } from '../../lib/assets/materialize.js'; Template.userMgmt.onCreated(function() { this.subscribe("userList"); }); Template.userMgmt.onRendered(function() { - $('select').formSelect(); - $('.modal').modal(); + var elems = document.querySelectorAll('select'); + var instances = M.FormSelect.init(elems, {}); + + var elemm = document.querySelectorAll('.modal'); + var instancem = M.Modal.init(elemm, {});; }); Template.userMgmt.helpers({ @@ -31,7 +34,6 @@ Template.userMgmt.events({ let userId = this._id; // take action Session.set("usersId", userId); - $("#userInfoModal").modal('open'); }, "click .deleteUser" (event) { event.preventDefault(); @@ -43,6 +45,5 @@ Template.userMgmt.events({ Session.set("item", "User"); Session.set("view", "Users"); Session.set("method", "delete.userFromSys"); - $('#modalDelete').modal('open'); } }); \ No newline at end of file diff --git a/client/ListItems/listItemsForm.html b/client/ListItems/listItemsForm.html index 24d7eb8..15220e0 100644 --- a/client/ListItems/listItemsForm.html +++ b/client/ListItems/listItemsForm.html @@ -40,7 +40,7 @@
- Add + Add
{{/if}}