Skip to content

Commit

Permalink
Merge pull request #6784 from unoplatform/dev/jbg/no-results
Browse files Browse the repository at this point in the history
docs: no results message always shows when there are no result, uno logo
  • Loading branch information
nv-jbleau authored Aug 16, 2021
2 parents 7c7af6e + 7fb36c5 commit ee02191
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Binary file added doc/images/uno-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 3 additions & 1 deletion doc/templates/uno/styles/docfx.js
Original file line number Diff line number Diff line change
Expand Up @@ -278,11 +278,14 @@ $(function () {

function addSearchEvent() {
$('body').on("searchEvent", function () {
$('#search-results>.sr-items').html('<p>No results found</p>');

$('#search-query').keypress(function (e) {
return e.which !== 13;
});

$('#search-query').on("keyup", function () {
$('#search-results').show();
query = $(this).val();
$("body").trigger("query-ready");
$('#search-results>.search-list').text('Search Results for "' + query + '"');
Expand Down Expand Up @@ -337,7 +340,6 @@ $(function () {
return itemNode;
})
);
$('#search-results').show();
query.split(/\s+/).forEach(function (word) {
if (word !== '') {
word = word.replace(/\*/g, '');
Expand Down

0 comments on commit ee02191

Please sign in to comment.