Skip to content
This repository has been archived by the owner on Jun 28, 2021. It is now read-only.

Commit

Permalink
Merge pull request #378 from TakwimuAfrica/feature/improve-search
Browse files Browse the repository at this point in the history
Improve search
  • Loading branch information
DavidLemayian authored Sep 17, 2018
2 parents d161ac1 + 76f17c7 commit 01729e7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions takwimu/static/css/takwimu.scss
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,9 @@ a {
&.active .page-link {
background-color: $brand-color-secondary;
border-color: $brand-color-secondary;
&:hover {
color: $brand-extend-white;
}
}
}

Expand Down
4 changes: 4 additions & 0 deletions takwimu/templates/takwimu/_includes/search/_popover.html
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,10 @@ <h1 class="display-6 text-center font-weight-bold">Please type something into th
.addClass("d-flex")
.find(".selected-items").html(_checked[0]);
break;
case (_checked.length < 1):
$("#"+_parent+" button .select-item").removeClass("d-none").addClass("d-flex");
$("#"+_parent+" button .filter-badge").removeClass("d-flex").addClass("d-none");
break;
case ( _checked.length > 1):
$("#"+_parent+" button .filter-badge")
.find(".selected-items").html("Multiple "+_parent+" selected");
Expand Down

0 comments on commit 01729e7

Please sign in to comment.