We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 21f4d19 commit d162731Copy full SHA for d162731
static/shared/js/documentation.js
@@ -108,7 +108,7 @@ $(function() {
108
$(this).prepend("<a class='header-anchor' href='#" + id + "'></a>");
109
});
110
111
- // # Search
+ // #### Search ####
112
var searchIndex,
113
searchHits;
114
@@ -139,6 +139,12 @@ $(function() {
139
140
return false;
141
}
142
+
143
+ // Expand and activate search if the page loaded with a value set for the search field
144
+ if ($("#searchfield").val().length > 0) {
145
+ $("#search-container").addClass("active");
146
+ searchForString($("#searchfield").val());
147
+ }
148
149
// On input change, update the search results
150
$("#searchfield").on("input", function(e) {
0 commit comments