Created
August 30, 2017 12:09
-
-
Save Kevin-Kawai/37eddac58efb99534998a162b9f2b25f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('.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