Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Remove 'add new' click listeners, this prevents firing this event multiple times
- body.off('click', '[data-add-new-story="true"]');
- // User wants to add new story to current sprint
- body.on('click', '[data-add-new-story="true"]', function() {
- var element = jQuery(this);
- var sprintId = element.data('sprintId');
- var projectId = element.data('projectId');
- // Hide current modal
- modal.modal('hide');
- // Trigger story add
- body.trigger('storyAdd', [projectId, sprintId, 'sprintBacklog']);
- });
Advertisement
Add Comment
Please, Sign In to add comment