Commit b4f1da1c authored by Guillaume Perréal's avatar Guillaume Perréal
Browse files

Ne tente de supprimer un fichier sur le serveur que s'il a été créé.

Showing with 3 additions and 1 deletion
+3 -1
...@@ -123,7 +123,9 @@ ...@@ -123,7 +123,9 @@
} }
)).bind({ )).bind({
fileuploadfailed: function (e, data) { fileuploadfailed: function (e, data) {
$.ajax(data.url, { type: 'DELETE' }); if(data.url) {
$.ajax(data.url, { type: 'DELETE' });
}
}, },
fileuploadadded: updateButtonVisibility, fileuploadadded: updateButtonVisibility,
fileuploadfinished: updateButtonVisibility, fileuploadfinished: updateButtonVisibility,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment