X-Git-Url: https://git.p6c8.net/jirafeau_mojo42.git/blobdiff_plain/0f7bae25565ac06eeb7fab1738c4a2859d017894..7991901d3f74146678b9f9c64b66aca2b3fae2e4:/lib/functions.js.php?ds=inline diff --git a/lib/functions.js.php b/lib/functions.js.php index 1f83ae7..b2580b5 100644 --- a/lib/functions.js.php +++ b/lib/functions.js.php @@ -558,6 +558,8 @@ function async_upload_end (code) function upload (max_size) { + var one_time_checkbox = document.getElementById('one_time_download'); + var one_time = one_time_checkbox !== null ? one_time_checkbox.checked : false; if (check_html5_file_api () && document.getElementById('file_select').files[0].size >= max_size) { @@ -566,7 +568,7 @@ function upload (max_size) document.getElementById('file_select').files[0], document.getElementById('select_time').value, document.getElementById('input_key').value, - document.getElementById('one_time_download').checked, + one_time, document.getElementById('upload_password').value ); } @@ -576,7 +578,7 @@ function upload (max_size) document.getElementById('file_select').files[0], document.getElementById('select_time').value, document.getElementById('input_key').value, - document.getElementById('one_time_download').checked, + one_time, document.getElementById('upload_password').value ); }