mirror of
https://github.com/VinylDNS/vinyldns
synced 2025-08-31 06:15:49 +00:00
Merge pull request #1385 from Jay07GIT/fix_batch_change_edit
Fix for dns edit page after submit
This commit is contained in:
@@ -37,9 +37,16 @@
|
||||
show: true //Display loader!
|
||||
})
|
||||
let promis = $http.post(url, data, {headers: utilityService.getCsrfHeader()});
|
||||
|
||||
function hideLoader() {
|
||||
loader.modal("hide");
|
||||
|
||||
// Manually remove the backdrop after the modal is hidden
|
||||
$('.modal-backdrop').remove();
|
||||
$('body').removeClass('modal-open'); // Remove the class that prevents scrolling
|
||||
}
|
||||
// Hide loader when api gets response
|
||||
promis.then(()=>loader.modal("hide"))
|
||||
.catch(()=>loader.modal("hide"))
|
||||
promis.then(hideLoader, hideLoader).catch(hideLoader).finally(hideLoader);
|
||||
return promis
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user