Update client.js
This commit is contained in:
parent
bd0299516d
commit
246720872b
@ -2,8 +2,6 @@ var allowedu = {};
|
|||||||
allowedu["ybq987@gmail.com"] = true;
|
allowedu["ybq987@gmail.com"] = true;
|
||||||
allowedu["dweinger@bloomfield.org"] = true;
|
allowedu["dweinger@bloomfield.org"] = true;
|
||||||
|
|
||||||
var done = false;
|
|
||||||
|
|
||||||
Meteor.subscribe('schedule');
|
Meteor.subscribe('schedule');
|
||||||
|
|
||||||
|
|
||||||
@ -30,17 +28,14 @@ Template.client.helpers({
|
|||||||
|
|
||||||
Template.client.events({
|
Template.client.events({
|
||||||
"focus input": function() {
|
"focus input": function() {
|
||||||
if (!done) {
|
today = new Date()
|
||||||
today = new Date()
|
$('#date').datepicker({
|
||||||
$('#date').datepicker({
|
startDate: today.toLocaleDateString(),
|
||||||
startDate: today.toLocaleDateString(),
|
orientation: "top auto",
|
||||||
orientation: "top auto",
|
daysOfWeekDisabled: "0,6",
|
||||||
daysOfWeekDisabled: "0,6",
|
autoclose: true,
|
||||||
autoclose: true,
|
todayHighlight: true
|
||||||
todayHighlight: true
|
});
|
||||||
});
|
|
||||||
done = true;
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
|
|
||||||
"click button": function() {
|
"click button": function() {
|
||||||
@ -67,4 +62,4 @@ Template.recent.helpers({
|
|||||||
aftertext: function() {
|
aftertext: function() {
|
||||||
return this.aftertext;
|
return this.aftertext;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user