moved datepicker and added enter button
This commit is contained in:
parent
2537c8d93e
commit
3c203f307e
@ -21,6 +21,10 @@ h1 {
|
||||
margin-left: 4.2%;
|
||||
}
|
||||
|
||||
.datepicker {
|
||||
margin-top: 10.3%;
|
||||
}
|
||||
|
||||
#date {
|
||||
margin-top:4%;
|
||||
margin-left: 3.5%;
|
||||
|
||||
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user