Advertisement
Guest User

Untitled

a guest
Oct 31st, 2014
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.25 KB | None | 0 0
  1. <!---Script to add dashboard link --->
  2. <script>
  3. $(function(){
  4. //Add a new note to a link
  5. $("#add_dashboard_links").submit(function(){
  6. // prevent native form submission here
  7. $.ajax({
  8. type: "POST",
  9. data: $('#add_dashboard_links').serialize(),
  10. url: "actionpages/add_dashboard_link.cfm",
  11. beforeSend: function(){
  12. $('.loader').show();
  13. },
  14. complete: function(){
  15. $('.loader').hide(3000);
  16. },
  17. success: function() {
  18. $("#addNoteResponse").html('');
  19. $("#link_description").val('');
  20. $("#link_url").val('');
  21. $("#notes").val('');
  22. $("#addNoteResponse").append( "Link successfully added." );
  23.  
  24. }
  25. });
  26. return false;
  27. });
  28. });
  29. </script>
  30.  
  31. <cfdiv id="noteDiv" bind="url:templates/dashboard_notes.cfm">
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement