mirror of
https://gitlab.com/bmcgonag/get_my.git
synced 2026-03-27 00:08:49 +00:00
Updated Store Management with newer materialize libraries
This commit is contained in:
parent
27b3c82faf
commit
ea3ed117ff
4 changed files with 41 additions and 38 deletions
|
|
@ -1,12 +1,17 @@
|
|||
import { Stores } from '../../../imports/api/stores';
|
||||
import { M } from '../../lib/assets/materialize.js';
|
||||
|
||||
Template.storeMgmtTbl.onCreated(function() {
|
||||
this.subscribe("storeInfo");
|
||||
});
|
||||
|
||||
Template.storeMgmtTbl.onRendered(function() {
|
||||
var elems = document.querySelectorAll('.modal');
|
||||
var instances = M.Modal.init(elems, {});
|
||||
|
||||
Meteor.setTimeout(function() {
|
||||
$('.tooltipped').tooltip();
|
||||
var elemt = document.querySelectorAll('.tooltipped');
|
||||
var instancet = M.Tooltip.init(elemt, {});
|
||||
}, 150);
|
||||
});
|
||||
|
||||
|
|
@ -23,7 +28,6 @@ Template.storeMgmtTbl.events({
|
|||
Session.set("method", "delete.store");
|
||||
Session.set("item", this.storeName);
|
||||
Session.set("view", "Stores");
|
||||
$('#modalDelete').modal('open');
|
||||
},
|
||||
'click .editStore' (event) {
|
||||
event.preventDefault();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue