Skip to content

Commit

Permalink
Merge pull request #216 from B2SHARE/ui/reorder-operations
Browse files Browse the repository at this point in the history
Reordered hide button and upload operations for improved safety
  • Loading branch information
peskk3am committed Apr 1, 2014
2 parents 1a8f170 + 851a98c commit 5db7498
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions simplestore/etc/static/js/simplestore-deposit.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,20 +122,22 @@ function simplestore_init_plupload(selector, url, delete_url, get_file_url) {
setDepositBtnState();

$('#uploadfiles').click(function(e) {
$('#uploadfiles').hide();

uploader.start();
setDepositBtnState();

//Show the domain selection stuff
$('#uploadfiles').hide();
$('#stopupload').show();
$('#domains').removeClass('hide');
$('#domains').slideDown();
e.preventDefault();
});

$('#stopupload').click(function(d){
uploader.stop();
$('#stopupload').hide();

uploader.stop();

$('#uploadfiles').show();
$.each(uploader.files, function(i, file) {
if (file.loaded < file.size){
Expand Down

0 comments on commit 5db7498

Please sign in to comment.