mirror of
https://gitlab.com/bmcgonag/get_my.git
synced 2026-03-27 00:08:49 +00:00
Updated Menus and Menu Items to use newer materialize
This commit is contained in:
parent
ea3ed117ff
commit
81559683eb
9 changed files with 59 additions and 54 deletions
|
|
@ -1,6 +1,7 @@
|
|||
import { MenuItems } from '../../imports/api/menuItems.js';
|
||||
import { Menus } from '../../imports/api/menu.js';
|
||||
import moment from 'moment';
|
||||
import { M } from '../lib/assets/materialize.js';
|
||||
|
||||
Template.menuItemsForm.onCreated(function() {
|
||||
this.subscribe("myMenus");
|
||||
|
|
@ -8,7 +9,9 @@ Template.menuItemsForm.onCreated(function() {
|
|||
});
|
||||
|
||||
Template.menuItemsForm.onRendered(function() {
|
||||
$('.datepicker').datepicker();
|
||||
var elems = document.querySelectorAll('.datepicker');
|
||||
var instances = M.Datepicker.init(elems, {});
|
||||
|
||||
Session.set("menuItemErr", false);
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue