Advertisement
Guest User

Untitled

a guest
Feb 23rd, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1. function onUpdateIssueLinkClick() {
  2. AJS.$("a.update_project_from_blue_ant").attr("href", "#");
  3. AJS.$("a.update_project_from_blue_ant").off();
  4.  
  5. AJS.$(".update_project_from_blue_ant" ).on("click", function(e) {
  6. e.preventDefault();
  7. onUpdateLinkClick(true);
  8. return false;
  9. });
  10.  
  11. AJS.$("#update_issue_from_blue_ant").off("click");
  12. AJS.$("#update_issue_from_blue_ant").on("click", function(e) {
  13. e.preventDefault();
  14. onUpdateLinkClick(false);
  15. });
  16.  
  17. AJS.$("#update_todo_from_blue_ant").off("click");
  18. AJS.$("#update_todo_from_blue_ant").on("click", function(e) {
  19. e.preventDefault();
  20. onUpdateTodoLinkClick();
  21. });
  22.  
  23. AJS.$("a.update_todos_from_blue_ant").attr("href", "#");
  24. AJS.$("a.update_todos_from_blue_ant").off();
  25.  
  26. AJS.$(".update_todos_from_blue_ant" ).on("click", function(e) {
  27. e.preventDefault();
  28. onUpdateTodoLinkClick();
  29. return false;
  30. });
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement