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

Commit

Permalink
Merge pull request #2052 from darkwing/remove-legacy-search
Browse files Browse the repository at this point in the history
Remove legacy redesign search artifacts
  • Loading branch information
openjck committed Feb 22, 2014
2 parents 38b6bdc + 550e4bb commit 18d6e74
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 41 deletions.
2 changes: 1 addition & 1 deletion apps/search/templates/search/results.html
Expand Up @@ -123,7 +123,7 @@ <h3><i aria-hidden="true" class="icon-copy"></i>{{ _('Docs') }}</h3>
{% endfor %}
</ul>

<div class="search-results-more {% if show_expander %}with-view-all{% endif %}">
<div class="search-results-more">

<div class="pager">
{% if previous %}
Expand Down
16 changes: 0 additions & 16 deletions media/redesign/js/search.js
Expand Up @@ -9,12 +9,6 @@
}
};

var parentSelector = '.search-pane';
$(parentSelector + ' .close').on('click', function(e) {
e.preventDefault();
$('#search-results-close-container').addClass('closed');
});

/*
Set up the "from search" buttons if user came from search
*/
Expand All @@ -39,16 +33,6 @@
fromSearchList.find('ol').mozKeyboardNav();
}

var more = $('.search-results-more');
more.find('.view-all').on('click', function(e) {
e.preventDefault();
var hiddenClass = 'closed';
var parent = $(this).closest(parentSelector);
parent.find('.' + hiddenClass).removeClass(hiddenClass);
parent.find('.pager').removeClass('hidden');
more.removeClass('with-view-all');
});

// a small wrapper around store.js to be able to set an expiration
var searchStore = {
set: function(key, val, exp) {
Expand Down
24 changes: 0 additions & 24 deletions media/redesign/stylus/search.styl
Expand Up @@ -48,11 +48,6 @@ p {
}
}

/* search results container and child elements */
#search-results-close-container {
slider();
}

.search-results-container {
padding: grid-spacing;

Expand Down Expand Up @@ -123,25 +118,6 @@ p {
.search-results-more {
clearfix();
padding: 0 grid-spacing;

.with-view-all .view-all {
display: block;
}
}

.view-all {
reverse-link-decoration();
float: right;
display: none;
}

.search-results-more.with-view-all {
.view-all {
display: block;
}
.pager {
display: none;
}
}

/* sidebar topic listings */
Expand Down

0 comments on commit 18d6e74

Please sign in to comment.