delete localstorage after deleting file for uploader

This commit is contained in:
Abhinav Adduri 2017-05-31 14:12:10 -07:00
parent 895c4d364f
commit 4968e501e1
1 changed files with 1 additions and 0 deletions

View File

@ -131,6 +131,7 @@ function returnBindedLI(a_element, name, link, li) {
xhr.onreadystatechange = function() { xhr.onreadystatechange = function() {
if (xhr.readyState === XMLHttpRequest.DONE) { if (xhr.readyState === XMLHttpRequest.DONE) {
document.getElementById("uploaded_files").removeChild(li); document.getElementById("uploaded_files").removeChild(li);
localStorage.removeItem(key);
} }
if (xhr.status === 200) { if (xhr.status === 200) {