Update client.js

This commit is contained in:
yamanq 2016-02-07 15:22:01 -05:00
parent bd0299516d
commit 246720872b

View File

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