File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -45,13 +45,12 @@ pheno_terms_tag.on("input", onInput);
45
45
// Tagify AJAX Function to get a list of HPO terms
46
46
var delayTimer ;
47
47
function onInput ( e ) {
48
+ pheno_terms_tag . whitelist = null ; // reset the whitelist
49
+ // show loading animation and hide the suggestions dropdown
50
+ pheno_terms_tag . loading ( true ) . dropdown . hide ( ) ;
48
51
clearTimeout ( delayTimer ) ;
49
52
delayTimer = setTimeout ( function ( ) {
50
53
var value = e . detail . value ;
51
- pheno_terms_tag . whitelist = null ; // reset the whitelist
52
- // show loading animation and hide the suggestions dropdown
53
- pheno_terms_tag . loading ( true ) . dropdown . hide ( ) ;
54
-
55
54
fetch (
56
55
"https://hpo.jax.org/api/hpo/search/?q=" +
57
56
value +
@@ -67,7 +66,7 @@ function onInput(e) {
67
66
}
68
67
pheno_terms_tag . whitelist = terms_list ;
69
68
pheno_terms_tag . loading ( false ) ;
70
- pheno_terms_tag . dropdown . show ( terms_list ) ; // render the suggestions dropdown
69
+ pheno_terms_tag . dropdown . show ( ) ; // render the suggestions dropdown
71
70
} ) ;
72
71
} , 700 ) ;
73
72
}
You can’t perform that action at this time.
0 commit comments