option: any;
searchBar: any;
filterset: boolean = false;
- emptySearch: any;
- slide: any;
constructor(public http:Http) {
this.newsearch = new EventEmitter();
this.visible = true;
- this.emptySearch = document.getElementById("divresult");
this.getUnitGroupSets();
this.ownershipSelector = document.getElementById("ownershipSelector");
this.typeSelector = document.getElementById("typeSelector");
getMoreInfo(orgunit) {
this.orgunits = [];
this.newsearch.next(orgunit.id);
+ return document.getElementById("myForm").reset();
+
}
//pil opp og ned
hideDiv(){
if(livesearch.value == "")
return true;
-
}
emptyByClick(){
- return this.emptySearch = document.getElementById("divresult").style.visibility = "hidden";
+ this.orgunits = [];
+ return document.getElementById("myForm").reset();
}
-
getUnitGroupSets(){
this.http.get(dhisAPI + "/api/organisationUnitGroupSets")
.map(res => res.json())
setOptionHeader(selector, value){
this.option = document.createElement("option");
- this.option.text = "-- " + value + " --";
+ this.option.text = "All";
this.option.value = "";
selector.appendChild(this.option);
}