diff --git a/frontend/src/download.js b/frontend/src/download.js index 4f1d40b5..f0a5aea7 100644 --- a/frontend/src/download.js +++ b/frontend/src/download.js @@ -6,9 +6,9 @@ require('jquery-circle-progress'); const Raven = window.Raven; $(document).ready(function() { $('#download-progress').hide(); - $('.send-new').click(() => { - window.location.replace(`${window.location.origin}`); - }); + //link back to homepage + $('.send-new').attr('href', window.location.origin); + const filename = $('#dl-filename').html(); //initiate progress bar diff --git a/frontend/src/upload.js b/frontend/src/upload.js index 555b7961..9527489a 100644 --- a/frontend/src/upload.js +++ b/frontend/src/upload.js @@ -68,17 +68,8 @@ $(document).ready(function() { fill: '#3B9DFF', size: 158 }); - // link back to home page - $('.send-new').click(() => { - $('#upload-progress').hide(); - $('#share-link').hide(); - $('#upload-error').hide(); - $copyBtn.attr('disabled', false); - $('#link').attr('disabled', false); - $copyBtn.html('Copy to Clipboard'); - $('.upload-window').removeClass('ondrag'); - $('#page-one').show(); - }); + //link back to homepage + $('.send-new').attr('href', window.location); // on file upload by browse or drag & drop function onUpload(event) { diff --git a/views/download.handlebars b/views/download.handlebars index 4eca5e3c..bf47cf68 100644 --- a/views/download.handlebars +++ b/views/download.handlebars @@ -38,9 +38,9 @@ -
+ {{else}}