2
0
mirror of https://github.com/VinylDNS/vinyldns synced 2025-09-02 23:35:18 +00:00

Merge pull request #1385 from Jay07GIT/fix_batch_change_edit

Fix for dns edit page after submit
This commit is contained in:
Arpit Shah
2024-08-26 14:37:03 -04:00
committed by GitHub

View File

@@ -37,9 +37,16 @@
show: true //Display loader! show: true //Display loader!
}) })
let promis = $http.post(url, data, {headers: utilityService.getCsrfHeader()}); 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 // Hide loader when api gets response
promis.then(()=>loader.modal("hide")) promis.then(hideLoader, hideLoader).catch(hideLoader).finally(hideLoader);
.catch(()=>loader.modal("hide"))
return promis return promis
}; };