diff --git a/simplestore/etc/static/js/simplestore-deposit.js b/simplestore/etc/static/js/simplestore-deposit.js index 27a60d7802..19c1c6e172 100755 --- a/simplestore/etc/static/js/simplestore-deposit.js +++ b/simplestore/etc/static/js/simplestore-deposit.js @@ -150,7 +150,7 @@ function simplestore_init_plupload(selector, url, delete_url, get_file_url) { type: "POST", url: delete_url, data: $.param({ - filename: file.unique_filename + filename: file.name, }) }); } @@ -242,6 +242,7 @@ function simplestore_init_plupload(selector, url, delete_url, get_file_url) { $('#filelist #' + file.id).show('fast'); $('#' + file.id + '_rm').on("click", function(event){ uploader.removeFile(file); + setDepositBtnState(); }); }); setDepositBtnState(); diff --git a/simplestore/etc/templates/simplestore-deposit.html b/simplestore/etc/templates/simplestore-deposit.html index 59dc197400..9386b69a64 100755 --- a/simplestore/etc/templates/simplestore-deposit.html +++ b/simplestore/etc/templates/simplestore-deposit.html @@ -160,7 +160,7 @@