Skip to content

Commit

Permalink
adds in caret in results view for toggle
Browse files Browse the repository at this point in the history
  • Loading branch information
mejackreed committed Feb 19, 2015
1 parent 2776122 commit 414623d
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/assets/javascripts/geoblacklight/modules/collapse.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@ Blacklight.onLoad(function() {
$('#content')
.on('click', '#documents [data-layer-id]', function() {
$(this).find('.collapse').collapse('toggle');
$(this).find('.caret-toggle').toggleClass('open');
});
});
10 changes: 10 additions & 0 deletions app/assets/stylesheets/geoblacklight/modules/results.scss
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,14 @@
.index_title {
@extend .text-span;
@extend .hide-overflow;
}

.caret-toggle {
@extend .fa, .fa-caret-right;
cursor: pointer;
width: 10px;

&.open {
@extend .fa, .fa-caret-down;
}
}
1 change: 1 addition & 0 deletions app/views/catalog/_index_split_default.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
<%= geoblacklight_icon(document['dc_rights_s']) %>
</div>
<h5 class="index_title col-sm-9s cosl-lg-10 text-span">
<span class='caret-toggle'></span>
<% counter = document_counter_with_offset(document_counter) %>
<span class="document-counter">
<%= t('blacklight.search.documents.counter', :counter => counter) if counter %>
Expand Down

0 comments on commit 414623d

Please sign in to comment.