From 2971b2f4496160a9c9f4341fe6e25a90d2977952 Mon Sep 17 00:00:00 2001 From: Sid Joshi Date: Fri, 6 Jan 2017 13:36:48 -0500 Subject: [PATCH 1/4] Search bar --- dcc-portal-ui/app/scripts/facets/views/terms.html | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dcc-portal-ui/app/scripts/facets/views/terms.html b/dcc-portal-ui/app/scripts/facets/views/terms.html index da7c673fa..450edf5a1 100644 --- a/dcc-portal-ui/app/scripts/facets/views/terms.html +++ b/dcc-portal-ui/app/scripts/facets/views/terms.html @@ -7,6 +7,12 @@ + + + + +
  • diff --git a/dcc-portal-ui/app/scripts/facets/js/terms.js b/dcc-portal-ui/app/scripts/facets/js/terms.js index 335c3de97..ca2eb73b7 100644 --- a/dcc-portal-ui/app/scripts/facets/js/terms.js +++ b/dcc-portal-ui/app/scripts/facets/js/terms.js @@ -24,6 +24,7 @@ function ($scope, $filter, Facets, HighchartsService, ProjectCache, ValueTranslator, LocationService) { $scope.resetPaginationOnChange = _.isUndefined($scope.resetPaginationOnChange) ? true : $scope.resetPaginationOnChange; + $scope.search = {}; // Translation on UI is slow, do in here function addTranslations (terms, facetName, missingText) { diff --git a/dcc-portal-ui/app/scripts/facets/styles/_facets.scss b/dcc-portal-ui/app/scripts/facets/styles/_facets.scss index 583c6f484..a5122b453 100644 --- a/dcc-portal-ui/app/scripts/facets/styles/_facets.scss +++ b/dcc-portal-ui/app/scripts/facets/styles/_facets.scss @@ -332,5 +332,5 @@ $togglerFontSize: 10px; } .t_facet_location_search{ - margin: 0px 0px 10px 0px; + margin: 10px 0px 10px 0px; } \ No newline at end of file diff --git a/dcc-portal-ui/app/scripts/facets/views/terms.html b/dcc-portal-ui/app/scripts/facets/views/terms.html index bcce14f17..f252e77fa 100644 --- a/dcc-portal-ui/app/scripts/facets/views/terms.html +++ b/dcc-portal-ui/app/scripts/facets/views/terms.html @@ -11,11 +11,11 @@ data-ng-show="(inactives.length > (searchIconShowLimit || 5)) && !collapsed"> -