Guest User

Untitled

a guest
Sep 18th, 2013
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // Remove 'add new' click listeners, this prevents firing this event multiple times
  2. body.off('click', '[data-add-new-story="true"]');
  3.  
  4. // User wants to add new story to current sprint
  5. body.on('click', '[data-add-new-story="true"]', function() {
  6.     var element = jQuery(this);
  7.     var sprintId = element.data('sprintId');
  8.     var projectId = element.data('projectId');
  9.  
  10.     // Hide current modal
  11.     modal.modal('hide');
  12.  
  13.     // Trigger story add
  14.     body.trigger('storyAdd', [projectId, sprintId, 'sprintBacklog']);
  15. });
Advertisement
Add Comment
Please, Sign In to add comment