Small fixes in filter gui
authorYrjan A. F. Fraschetti <yrjanaff@1x-193-157-250-45.uio.no>
Thu, 10 Dec 2015 17:08:41 +0000 (18:08 +0100)
committerYrjan A. F. Fraschetti <yrjanaff@1x-193-157-250-45.uio.no>
Thu, 10 Dec 2015 17:08:41 +0000 (18:08 +0100)
src/components/search/search.html
src/components/search/search.ts

index d8505db..c4f031b 100644 (file)
                     onfocus="this.placeholder = ''"
                     value=""/>
 
-            <button type="button" class="knapp col-md-2" (click)="toggle()"
-                    data-toggle="collapse" data-target="#dropdown-menu">
+            <button type="button" class="knapp col-md-2" (click)="toggle()" data-toggle="collapse" data-target="#dropdown-menu">
                 {{ visible ? '&xdtri;' : '&cross;' }}
             </button>
         </div>
     </form>
 
-    <!-- Searchresult div -->
+    <!-- Searchresult -->
     <div class="row">
         <span [hidden]="hideDiv()">
             <div class="divresult col-md-10" id="divresult" [hidden]="checkOrgunits()">
index 6b084d7..da240da 100644 (file)
@@ -59,9 +59,10 @@ export class Search {
     }
 
     hideDiv() {
-        if (this.searchBar.value == "")
+        if (this.searchBar.value == ""){
+            //this.toggle();
             return true;
-
+        }
     }
 
     emptyByClick(){