Skip to content

Instantly share code, notes, and snippets.

@Kevin-Kawai
Created August 30, 2017 12:09
Show Gist options
  • Save Kevin-Kawai/37eddac58efb99534998a162b9f2b25f to your computer and use it in GitHub Desktop.
Save Kevin-Kawai/37eddac58efb99534998a162b9f2b25f to your computer and use it in GitHub Desktop.
$('.add_activity_btn').click(function(event) {
event.preventDefault();
$('#activity_column').append('<%= j render partial: "routines/partial/empty_activities", locals: {activity: @new_activities, routine: @routines} %>');
$('.new-activity').click(function() {
$(this).parent().parent().remove();
});
});
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment