Add show all IsA option
This commit is contained in:
parent
7ed3b849e0
commit
50b92760df
2 changed files with 13 additions and 0 deletions
|
|
@ -168,6 +168,16 @@ function isa_only(e) {
|
|||
checkbox_change();
|
||||
}
|
||||
|
||||
function show_all_isa(e) {
|
||||
e.preventDefault();
|
||||
var checkbox_list = document.getElementsByClassName('isa-checkbox');
|
||||
for (const checkbox of checkbox_list) {
|
||||
checkbox.checked = true;
|
||||
}
|
||||
|
||||
checkbox_change();
|
||||
}
|
||||
|
||||
function checkbox_change() {
|
||||
var checkbox_list = document.getElementsByClassName('isa-checkbox');
|
||||
var ticked = [];
|
||||
|
|
@ -350,6 +360,8 @@ function load_wikidata_items() {
|
|||
|
||||
};
|
||||
|
||||
document.getElementById('show-all-isa').onclick = show_all_isa;
|
||||
|
||||
var load_btn = document.getElementById('load-btn');
|
||||
load_btn.onclick = load_wikidata_items;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue