too much stuff. uploader script from template. dropdown menu for tools

This commit is contained in:
Ville Rantanen
2018-03-15 12:14:32 +02:00
parent 6724ac2557
commit 86c855285c
6 changed files with 340 additions and 75 deletions

View File

@@ -1,4 +1,12 @@
function clear_text(id,defaultValue) {
var element = document.getElementById(id);
if ( element.value == defaultValue ) {
element.value = '';
}
}
function index_form_enter(event) {
if (event.which || event.keyCode) {
if ((event.which == 13) || (event.keyCode == 13)) {
@@ -12,6 +20,13 @@ function index_form_submit() {
document.getElementById("index_form_name").value;
}
function infoToggle() {
var info = document.getElementById("list_info");
info.style.display = info.style.display === 'block' ? 'none' : 'block';
}
function UploadFile(file,file_no,files_total) {
if (uploadTurn != file_no) {
// Wait for our turn to upload. check every 0.5s