Meteor template.onRender called before DOM completion -
once user log in, 'teacher' template rendered. however, it's rendered before dom completion, means $ '#datetimepicker'
doesn't work.
body if currentuser +student +teacher else +account
code in meteor.isclient:
template['teacher'].onrendered !-> $ '#datetimepicker' .datetimepicker!
thanks in advance!
Comments
Post a Comment