X-Git-Url: https://git.p6c8.net/jirafeau_mojo42.git/blobdiff_plain/ad3b6e463976a874bb91aa85981140a2c6e8ae86..a9248c01e37d3085a832671e795754e780e831c9:/lib/functions.js.php?ds=sidebyside diff --git a/lib/functions.js.php b/lib/functions.js.php index e952430..7ac8c76 100644 --- a/lib/functions.js.php +++ b/lib/functions.js.php @@ -154,14 +154,14 @@ function show_link (url, reference, delete_code, crypt_key, date) // Validity date if (isEmpty(date)) { - document.getElementById('validity').style.display = 'none'; + document.getElementById('date').style.display = 'none'; } else { document.getElementById('date').innerHTML = '' + date.format('YYYY-MM-DD hh:mm (GMT O)') + ''; - document.getElementById('validity').style.display = ''; + document.getElementById('date').style.display = ''; } // Preview link (if allowed) @@ -261,12 +261,13 @@ function control_selected_file_size(max_size, error_str) } else { - document.getElementById('options').style.display = ''; - document.getElementById('send').style.display = ''; + // add class to restyle upload form in next step + document.getElementById('upload').setAttribute('class', 'file-selected'); + // display options + document.getElementById('options').style.display = 'block'; + document.getElementById('send').style.display = 'block'; document.getElementById('error_pop').style.display = 'none'; - document.getElementById('file_select').style.left = 'inherit'; - document.getElementById('file_select').style.height = 'inherit'; - document.getElementById('file_select').style.opacity = '1'; + document.getElementById('send').focus(); } }