Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!---Script to add dashboard link --->
- <script>
- $(function(){
- //Add a new note to a link
- $("#add_dashboard_links").submit(function(){
- // prevent native form submission here
- $.ajax({
- type: "POST",
- data: $('#add_dashboard_links').serialize(),
- url: "actionpages/add_dashboard_link.cfm",
- beforeSend: function(){
- $('.loader').show();
- },
- complete: function(){
- $('.loader').hide(3000);
- },
- success: function() {
- $("#addNoteResponse").html('');
- $("#link_description").val('');
- $("#link_url").val('');
- $("#notes").val('');
- $("#addNoteResponse").append( "Link successfully added." );
- }
- });
- return false;
- });
- });
- </script>
- <cfdiv id="noteDiv" bind="url:templates/dashboard_notes.cfm">
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement