Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2014
261
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. <script>
  2.  
  3. function testabv()
  4. {
  5. $('.taskDraggable', parent.document).draggable({
  6.  
  7. scrollSensitivity: 60,
  8. cursor: "pointer" ,
  9. zIndex: "2700",
  10. containment: $('document'),
  11. helper: 'clone',
  12. revertDuration: 0,
  13. revert: true,
  14. cursor: 'move'
  15. });
  16. }
  17.  
  18.  
  19. function doa(a, myThis)
  20. {
  21. var myData = "category=" + a;
  22. $.ajax({
  23. type: "GET",
  24. url: "ajaxCatsGet.php",
  25. async: false,
  26. data: myData,
  27. success:function(data)
  28. {
  29. // take the data (the task from the category just clicked) and add them to the root document
  30. $('#qaz23', parent.document).html(data);
  31. // remove all classes in the link container (so it removes whatever is highlgihted)
  32. $('#container a').removeClass();
  33.  
  34. // highlight the current item clicked
  35. $(myThis).addClass('highlight');
  36.  
  37. testabv();
  38. }
  39. });
  40. }
  41.  
  42. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement