Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function deleteApplication() {
- var id;
- var formData;
- //precondition: id must be in the url (after #)
- //if a hash is present in the url, update application according to it
- if(window.location.hash){
- id = window.location.hash.substring(1);
- }
- formData = "id=" + encodeURIComponent(id);
- console.log(formData);
- $.ajax({
- url : baseUrl +"/portal_skins/erp5_clearinghouse_developer_dashboard_web_site/ExternalApplication_deleteApplication",
- type: "UPDATE",
- data : formData,
- success: function(data, textStatus, jqXHR)
- {
- loadApps();
- $("#deleteSuccessAlert").fadeTo(2000, 500).slideUp(500, function(){
- $("#deleteSuccessAlert").slideUp(500);
- });
- }
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement