Skip to content

Instantly share code, notes, and snippets.

@mrcwinn
Created March 26, 2013 01:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mrcwinn/5242337 to your computer and use it in GitHub Desktop.
Save mrcwinn/5242337 to your computer and use it in GitHub Desktop.
Template.project_issues.events = {
'keydown input[name="issue[title]"]': function(event) {
if(event.which == 13) {
Issues.insert({
title: event.target.value,
projectId: Session.get('currentProjectId'),
milestoneId: ''
});
event.target.value = '';
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment