From 246720872b291b76464f854b318e30ba5c6f8619 Mon Sep 17 00:00:00 2001 From: yamanq Date: Sun, 7 Feb 2016 15:22:01 -0500 Subject: [PATCH] Update client.js --- scheduleac/client/client.js | 23 +++++++++-------------- 1 file changed, 9 insertions(+), 14 deletions(-) diff --git a/scheduleac/client/client.js b/scheduleac/client/client.js index 0a1736b..ade2d1d 100644 --- a/scheduleac/client/client.js +++ b/scheduleac/client/client.js @@ -2,8 +2,6 @@ var allowedu = {}; allowedu["ybq987@gmail.com"] = true; allowedu["dweinger@bloomfield.org"] = true; -var done = false; - Meteor.subscribe('schedule'); @@ -30,17 +28,14 @@ Template.client.helpers({ Template.client.events({ "focus input": function() { - if (!done) { - today = new Date() - $('#date').datepicker({ - startDate: today.toLocaleDateString(), - orientation: "top auto", - daysOfWeekDisabled: "0,6", - autoclose: true, - todayHighlight: true - }); - done = true; - } + today = new Date() + $('#date').datepicker({ + startDate: today.toLocaleDateString(), + orientation: "top auto", + daysOfWeekDisabled: "0,6", + autoclose: true, + todayHighlight: true + }); }, "click button": function() { @@ -67,4 +62,4 @@ Template.recent.helpers({ aftertext: function() { return this.aftertext; } -}); \ No newline at end of file +});