From 335517bf17f588cf0fdd6993436816a77b5b01e5 Mon Sep 17 00:00:00 2001 From: andreimarcu Date: Sun, 4 Oct 2015 02:28:00 -0400 Subject: [PATCH] Update upload.js with 200 status for delete --- static/js/upload.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/js/upload.js b/static/js/upload.js index 80c57bc..44afffc 100644 --- a/static/js/upload.js +++ b/static/js/upload.js @@ -48,7 +48,7 @@ Dropzone.options.dropzone = { xhr.open("DELETE", resp.url, true); xhr.setRequestHeader("X-Delete-Key", resp.delete_key); xhr.onreadystatechange = function(file) { - if (xhr.status === 404) { + if (xhr.status === 200) { file.leftElement.innerHTML = 'Deleted ' + resp.url + ''; file.leftElement.className = "deleted"; file.rightRightElement.onclick = null;