Skip to content

Instantly share code, notes, and snippets.

@jgdovin
Created April 6, 2015 17:15
Show Gist options
  • Save jgdovin/2a77f00f5db6931bc558 to your computer and use it in GitHub Desktop.
Save jgdovin/2a77f00f5db6931bc558 to your computer and use it in GitHub Desktop.
Template.editLineItem.events({
"blur input" : function(event,template) {
var set = {};
set[template.$(event.target).data('id')] = template.$(event.target).val();
LineItems.update(template.data._id, {$set: set} );
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment