Cleanup in search
authorYrjan A. F. Fraschetti <yrjanaff@1x-193-157-250-45.uio.no>
Thu, 10 Dec 2015 17:52:34 +0000 (18:52 +0100)
committerYrjan A. F. Fraschetti <yrjanaff@1x-193-157-250-45.uio.no>
Thu, 10 Dec 2015 17:52:34 +0000 (18:52 +0100)
src/components/search/search.html
src/components/search/search.ts
src/index.html

index dfb79b2..30c915a 100644 (file)
@@ -19,7 +19,7 @@
                     onfocus="this.placeholder = ''"
                     value=""/>
 
-            <!--Show and empty filtermenu-->
+            <!--Show or hide, and empty filtermenu-->
             <button type="button" class="filterbutton col-md-2" (click)="toggle()"
                     data-toggle="collapse" data-target="#dropdown-menu">
                 {{ visible ? '&xdtri;' : '&khcy;' }}
index c3aed55..0fa876e 100644 (file)
@@ -51,6 +51,7 @@ export class Search {
         }
     }
 
+    //Resets the filter values in selectors
     resetSelector(){
         this.ownershipSelector.selectedIndex = 0;
         this.typeSelector.selectedIndex = 0;
index 8b21207..fa869f7 100644 (file)
     <script src="../node_modules/systemjs/dist/system.src.js"></script>
     <script src="../node_modules/angular2/bundles/angular2.dev.js"></script>
     <script src="../node_modules/angular2/bundles/http.dev.js"></script>
-    <!--<script src="../node_modules/angular2/bundles/router.dev.js"></script>-->
     <script src="http://code.jquery.com/jquery-1.11.3.min.js"></script>
     <script src="../node_modules/bootstrap/dist/js/bootstrap.min.js"></script>
     <link rel="stylesheet" type="text/css" href="../node_modules/bootstrap/dist/css/bootstrap.min.css">
     <link rel="stylesheet" type="text/css" href="css/map.css">
 
-
     <script>
         System.config({
             packages: {'components': {defaultExtension: 'js'}}
         });
         System.import('components/app');
     </script>
-
-
-
-
 </head>
 <body>
     <mou-app>loading...</mou-app>