From c0c939337f76d4771342463c9fb186f4f00c765f Mon Sep 17 00:00:00 2001 From: Timothy Vertein Date: Wed, 3 Feb 2016 10:19:13 -0600 Subject: [PATCH] Removes the header from specific tabs on search results --- .../main/webapp/my-app/search/controllers.js | 6 ++++++ .../my-app/search/partials/search-results.html | 18 ++++++++++++------ 2 files changed, 18 insertions(+), 6 deletions(-) diff --git a/angularjs-portal-home/src/main/webapp/my-app/search/controllers.js b/angularjs-portal-home/src/main/webapp/my-app/search/controllers.js index 679cee500..f40ff094a 100644 --- a/angularjs-portal-home/src/main/webapp/my-app/search/controllers.js +++ b/angularjs-portal-home/src/main/webapp/my-app/search/controllers.js @@ -84,19 +84,24 @@ define(['angular', 'portal/search/controllers', 'my-app/marketplace/controllers' if (filterName == 'all') { $('#all-selector').addClass('active'); $('#myuw-results').show(); + $('#myuw-results-header').show(); $('#wisc-directory-results').show(); + $('#wisc-directory-results-header').show(); $('#wisc-edu-results').show(); + $('#wisc-edu-results-header').show(); $('#wiscDirectorySeeMoreResults').show(); initwiscDirectoryResultLimit(); } else if (filterName == 'myuw') { $('#myuw-selector').addClass('active'); $('#myuw-results').show(); + $('#myuw-results-header').hide(); $('#wisc-directory-results').hide(); $('#wisc-edu-results').hide(); $('#wiscDirectorySeeMoreResults').hide(); } else if (filterName == 'directory') { $('#directory-selector').addClass('active'); $('#wisc-directory-results').show(); + $('#wisc-directory-results-header').hide(); $('#myuw-results').hide(); $('#wisc-edu-results').hide(); $('#wiscDirectorySeeMoreResults').hide(); @@ -104,6 +109,7 @@ define(['angular', 'portal/search/controllers', 'my-app/marketplace/controllers' } else if (filterName == 'google') { $('#google-selector').addClass('active'); $('#wisc-edu-results').show(); + $('#wisc-edu-results-header').hide(); $('#myuw-results').hide(); $('#wisc-directory-results').hide(); $('#wiscDirectorySeeMoreResults').hide(); diff --git a/angularjs-portal-home/src/main/webapp/my-app/search/partials/search-results.html b/angularjs-portal-home/src/main/webapp/my-app/search/partials/search-results.html index 2d17217d7..b20fa14dc 100644 --- a/angularjs-portal-home/src/main/webapp/my-app/search/partials/search-results.html +++ b/angularjs-portal-home/src/main/webapp/my-app/search/partials/search-results.html @@ -17,8 +17,10 @@
-

MyUW

-
+
+

MyUW

+
+