-
Notifications
You must be signed in to change notification settings - Fork 4
/
fink.pdb.js
42 lines (38 loc) · 1.06 KB
/
fink.pdb.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
function list_unmaintained_packages(value) {
if (value) {
document.pdb_browser.elements.maintainer.value="None"
}
else {
if (document.pdb_browser.elements.maintainer.value=="None") {
document.pdb_browser.elements.maintainer.value=""
}
}
}
function set_list_nomaintainer(text) {
if (text=="None") {
document.pdb_browser.elements.nomaintainer.checked=true
}
else {
document.pdb_browser.elements.nomaintainer.checked=false
}
}
function switchMenu(obj, img) {
var el = document.getElementById(obj);
if (el.style.display != 'none') {
el.style.display = 'none';
document.getElementById(img).src = linkroot + "img/expand.png";
}
else {
el.style.display = '';
document.getElementById(img).src = linkroot + "img/collapse.png";
}
}
function resetForm() {
for (var i=0; i<document.pdb_browser.elements.length; i++) {
var cobj = document.pdb_browser.elements[i];
if (cobj.type == 'text' || cobj.type == 'select-one')
cobj.value = '';
else if (cobj.type == 'checkbox')
cobj.checked = false;
}
}