Advertisement
Guest User

Untitled

a guest
Mar 25th, 2019
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. function deleteApplication() {
  2. var id;
  3. var formData;
  4. //precondition: id must be in the url (after #)
  5.  
  6. //if a hash is present in the url, update application according to it
  7. if(window.location.hash){
  8. id = window.location.hash.substring(1);
  9. }
  10. formData = "id=" + encodeURIComponent(id);
  11. console.log(formData);
  12. $.ajax({
  13. url : baseUrl +"/portal_skins/erp5_clearinghouse_developer_dashboard_web_site/ExternalApplication_deleteApplication",
  14. type: "UPDATE",
  15. data : formData,
  16. success: function(data, textStatus, jqXHR)
  17. {
  18. loadApps();
  19. $("#deleteSuccessAlert").fadeTo(2000, 500).slideUp(500, function(){
  20. $("#deleteSuccessAlert").slideUp(500);
  21. });
  22. }
  23. });
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement