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
|
|
@ -8,7 +8,7 @@
|
|||
<i class="material-icons clickable markAsComplete right" id="check_{{this._id}}">check</i>
|
||||
</li>
|
||||
{{/each}}
|
||||
<li class="collection-item clickable addNew" id="addList"> + Add New List</li>
|
||||
<li data-target="modalList" class="modal-trigger collection-item clickable addNew" id="addList"> + Add New List</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -19,7 +19,7 @@
|
|||
{{> listMgmtForm}}
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<a href="#!" class="modal-close waves-effect waves-green btn-flat">Done</a>
|
||||
<a href="#!" class="modal-close waves-effect black white-text btn-flat">Done</a>
|
||||
</div>
|
||||
</div>
|
||||
{{> snackbar}}
|
||||
|
|
|
|||
|
|
@ -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