Set deletion error instead of appending it

This commit is contained in:
Salman Shaikh 2021-09-15 23:15:07 +05:30
parent bbdd40be13
commit 5731f67956
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ $(document).ready(function() {
if (xhr.status === 200) {
deleteModal.find('#web').html('<span style="clear:both">File deleted</span></div>');
} else {
deleteModal.find('#web').append('<span>Error (' + xhr.status + ') during deletion of file</span>');
deleteModal.find('#web').html('<span>Error (' + xhr.status + ') during deletion of file</span>');
}
}
};