mirror of
https://gitlab.com/bmcgonag/get_my.git
synced 2026-03-27 00:08:49 +00:00
Updated Tasks and the delete confirmation modal for new materialize version.
This commit is contained in:
parent
e44ef98be4
commit
3d060e2eef
11 changed files with 76 additions and 41 deletions
|
|
@ -1,13 +1,15 @@
|
|||
import { Lists } from '../../../imports/api/lists.js';
|
||||
import { M } from '../../lib/assets/materialize.js';
|
||||
|
||||
Template.listMgmtTbl.onCreated(function() {
|
||||
this.subscribe("myLists");
|
||||
});
|
||||
|
||||
Template.listMgmtTbl.onRendered(function() {
|
||||
Meteor.setTimeout(function() {
|
||||
$('.tooltipped').tooltip();
|
||||
}, 150);
|
||||
var elems = document.querySelectorAll('.tooltipped');
|
||||
var instances = M.Tooltip.init(elems, {});
|
||||
var elemm = document.querySelectorAll('.modal');
|
||||
var instancem = M.Modal.init(elemm, {});
|
||||
});
|
||||
|
||||
Template.listMgmtTbl.helpers({
|
||||
|
|
@ -23,7 +25,6 @@ Template.listMgmtTbl.events({
|
|||
Session.set("method", "delete.list");
|
||||
Session.set("item", this.listName);
|
||||
Session.set("view", "Lists");
|
||||
$('#modalDelete').modal('open');
|
||||
let listId = this._id;
|
||||
},
|
||||
'click .editListName' (event) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue