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 +});