Skip to content

Commit

Permalink
Merge pull request #3799 from camptocamp/search_no_result
Browse files Browse the repository at this point in the history
Better 'no result' display in search
  • Loading branch information
fredj committed Apr 24, 2018
2 parents cfad21b + 381e959 commit 944487f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions contribs/gmf/less/search.less
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,9 @@ gmf-search {
}
}
}
.tt-menu.tt-open.gmf-search-no-results {
display: block !important;
}
}

// Overrides for small browser widths only
Expand Down
3 changes: 2 additions & 1 deletion contribs/gmf/src/directives/search.js
Original file line number Diff line number Diff line change
Expand Up @@ -970,8 +970,9 @@ gmf.SearchController.datasetsempty_ = function(event, query, empty) {
}
if (empty) {
message.show();
menu.show();
menu.addClass('gmf-search-no-results');
} else {
menu.removeClass('gmf-search-no-results');
message.hide();
}

Expand Down

0 comments on commit 944487f

Please sign in to comment.