mirror of
https://gitlab.com/bmcgonag/get_my.git
synced 2026-03-27 00:08:49 +00:00
Updating the materialize library and calls.
This commit is contained in:
parent
a118bf38fc
commit
e44ef98be4
17 changed files with 10582 additions and 15529 deletions
|
|
@ -1,11 +1,13 @@
|
|||
import { Lists } from '../../imports/api/lists.js';
|
||||
import { M } from '../lib/assets/materialize.js';
|
||||
|
||||
Template.listsTbl.onCreated(function() {
|
||||
this.subscribe("myLists");
|
||||
});
|
||||
|
||||
Template.listsTbl.onRendered(function() {
|
||||
$('.modal').modal();
|
||||
var elems = document.querySelectorAll('.modal');
|
||||
var instances = M.Modal.init(elems, {});
|
||||
});
|
||||
|
||||
Template.listsTbl.helpers({
|
||||
|
|
@ -21,7 +23,7 @@ Template.listsTbl.events({
|
|||
if (sender.localName == "li" || sender.localName == "span") {
|
||||
let listId = event.currentTarget.id;
|
||||
if (listId == "addList") {
|
||||
$('#modalList').modal('open');
|
||||
// $('#modalList').modal('open');
|
||||
} else {
|
||||
// console.log("listId is: " + listId);
|
||||
Session.set("listId", listId);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue