Skip to content

Commit

Permalink
Libdoc: Reset keywords when searhcing w/ empty string (#1872)
Browse files Browse the repository at this point in the history
  • Loading branch information
pekkaklarck committed Dec 22, 2014
1 parent 77aa6f9 commit 1f130f7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/robot/htmldata/libdoc/libdoc.html
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@ <h1>Opening library documentation failed</h1>
if (string) {
markMatches(string, include);
highlightMatches(string, include);
} else {
resetKeywords();
}
}

Expand Down Expand Up @@ -164,6 +166,10 @@ <h1>Opening library documentation failed</h1>
$('#include-args').prop('checked', true);
$('#include-doc').prop('checked', true);
$('#hide-unmatched').prop('checked', false);
resetKeywords();
}

function resetKeywords() {
renderTemplate('shortcuts', libdoc);
renderTemplate('keywords', libdoc);
$('#match-count').hide();
Expand Down

0 comments on commit 1f130f7

Please sign in to comment.