moved datepicker and added enter button

This commit is contained in:
yamanq 2016-03-06 22:23:10 -05:00
parent 2537c8d93e
commit 3c203f307e
2 changed files with 15 additions and 0 deletions

View File

@ -21,6 +21,10 @@ h1 {
margin-left: 4.2%;
}
.datepicker {
margin-top: 10.3%;
}
#date {
margin-top:4%;
margin-left: 3.5%;

View File

@ -30,6 +30,17 @@ Template.client.events({
Meteor.call('add_button', this, pre, post, other);
},
"keypress input": function(event) {
if (event.keyCode === 13) {
pre = document.getElementById("date").value;
document.getElementById("date").value = "";
post = document.getElementById('post').value;
other = document.getElementById("other").value;
document.getElementById("other").value = "";
Meteor.call('add_button', this, pre, post, other);
}
},
"click .pulltab": function() {
clicked = !clicked;
Session.set("sidebar", clicked);