-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfunctions-main.js
60 lines (48 loc) · 1.86 KB
/
functions-main.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
var stored_id = null;
function print_error(error_message){
msg = "Oh no, an error occurred... Anyway, we apologize for inconvenience. Please get in contact with the administrators and provide the following message: \n\n" + error_message;
alert(msg);
}
function show_checklist(eid){
workflow_type = 'checklist';
entry_id = eid;
document.getElementById("checklist-form").innerHTML = checklist_content;
request_form_content();
document.getElementById("workflow-list").style.display = "none";
document.getElementById("checklist-form").style.display = "block";
}
function hide_checklist(){
document.getElementById("workflow-list").style.display = "block";
document.getElementById("checklist-form").style.display = "none";
update_main_forms();
}
function show_samplelist(eid){
stored_id = entry_id;
workflow_type = 'sample';
entry_id = eid;
document.getElementById("workflow-list").style.display = "none";
document.getElementById("checklist-form").style.display = "block";
document.getElementById("checklist-form").innerHTML = checklist_content;
request_form_content();
}
function hide_samplelist(){
workflow_type = 'checklist';
entry_id = stored_id;
document.getElementById("checklist-form").innerHTML = checklist_content;
request_form_content();
}
function show_lipid_classlist(eid){
stored_id = entry_id;
workflow_type = 'lipid-class';
entry_id = eid;
document.getElementById("workflow-list").style.display = "none";
document.getElementById("checklist-form").style.display = "block";
document.getElementById("checklist-form").innerHTML = checklist_content;
request_form_content();
}
function hide_lipid_classlist(){
workflow_type = 'checklist';
entry_id = stored_id;
document.getElementById("checklist-form").innerHTML = checklist_content;
request_form_content();
}