X-Git-Url: https://git.p6c8.net/jirafeau_project.git/blobdiff_plain/6d4142df4e30e1f46cfa5b377bf2db0323e59479..431bebf06dfe7a2a1fecf8d933da97f7a03a358a:/lib/functions_v7.js?ds=inline diff --git a/lib/functions_v7.js b/lib/functions_v7.js index cb0ff73..0e17b50 100644 --- a/lib/functions_v7.js +++ b/lib/functions_v7.js @@ -182,7 +182,7 @@ function pop_failure (e) document.getElementById('send').style.display = ''; } -function add_time_string_to_date(d, time_string) +function add_time_string_to_date(d, time) { if(typeof(d) != 'object' || !(d instanceof Date)) { @@ -245,10 +245,8 @@ function classic_upload (url, file, time, password, one_time, upload_password) if (time != 'none') { var d = new Date(); - if(!add_time_string_to_date(d)) - { + if(!add_time_string_to_date(d, time)) return; - } show_link (url, res[0], res[1], res[2], d.toString()); } else @@ -416,7 +414,7 @@ function async_upload_end (code) if (async_global_time != 'none') { var d = new Date(); - if(!add_time_string_to_date(d)) + if(!add_time_string_to_date(d, async_global_time)) return; show_link (async_global_url, res[0], res[1], res[2], d.toString()); }