Skip to content
This repository has been archived by the owner on May 4, 2022. It is now read-only.

Removes the header from specific tabs on search results #395

Merged
merged 1 commit into from
Feb 3, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -84,26 +84,32 @@ 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();
$scope.wiscDirectoryResultLimit = 25;
} 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();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,10 @@
</div>

<div id="myuw-results" class='search-results-container'>
<h4 class="header">MyUW</h4>
<hr>
<div id="myuw-results-header">
<h4 class="header">MyUW</h4>
<hr>
</div>
<loading-gif data-object='myuwResults'></loading-gif>
<div ng-show="myuwFilteredResults.length == 0" class='no-result'>
No MyUW results
Expand Down Expand Up @@ -50,8 +52,10 @@ <h4><a href="{{::portlet.maxUrl}}" target="{{::portlet.target}}">{{ portlet.name

<!--wisc directory results-->
<div id="wisc-directory-results" class='search-results-container'>
<h4 class='header'>Directory</h4>
<hr>
<div id="wisc-directory-results-header">
<h4 class='header'>Directory</h4>
<hr>
</div>
<loading-gif data-object='wiscDirectoryResults' data-empty='wiscDirectoryResults'></loading-gif>
<div ng-show="wiscDirectoryResults.length === 0 && !wiscDirectoryTooManyResults" class='no-result'>
No directory results.
Expand Down Expand Up @@ -98,8 +102,10 @@ <h4>{{item.fullName}}</h4>

<!--wisc.edu results-->
<div id="wisc-edu-results" class='search-results-container'>
<h4 class='header'>Wisc.edu</h4>
<hr>
<div id="wisc-edu-results-header">
<h4 class='header'>Wisc.edu</h4>
<hr>
</div>
<loading-gif data-object='googleResults' data-empty='googleEmptyResults'></loading-gif>
<div ng-show="googleResults.length === 0" class='no-result'>
No wisc.edu results.
Expand Down