searchBar: any;
filterset: boolean = false;
emptySearch: any;
+ dropdown: any;
slide: any;
this.searchBar = document.getElementById("livesearch");
this.orglist = document.getElementById("orglist");
this.a = document.getElementById("testunit");
+ this.dropdown = document.getElementById("dropdown-menu");
}
getMoreInfo(orgunit) {
toggle() {
this.visible = !this.visible;
- if(this.visible){
+ if(!this.visible){
this.ownershipSelector.selectedIndex = 0;
this.typeSelector.selectedIndex = 0;
this.locationSelector.selectedIndex = 0;
}
-
emptyByClick(){
return this.emptySearch = document.getElementById("divresult").style.visibility = "hidden";
}
+ searchKeydown(){
+ if(this.filterset){
+ this.filterset = false;
+ this.setFilter();
+ }
+ }
+
getUnitGroupSets(){
this.http.get(dhisAPI + "/api/organisationUnitGroupSets")
if(this.filterset) {
this.filterset = false;
}
-
}
return !this.orgunits.length;
}