Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Nov 1, 2017. It is now read-only.

Commitd162731

Browse files
committed
Support page load with saved value for the input field
1 parent21f4d19 commitd162731

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

‎static/shared/js/documentation.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ $(function() {
108108
$(this).prepend("<a class='header-anchor' href='#"+id+"'></a>");
109109
});
110110

111-
// # Search
111+
// #### Search ####
112112
varsearchIndex,
113113
searchHits;
114114

@@ -139,6 +139,12 @@ $(function() {
139139

140140
returnfalse;
141141
}
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+
}
142148

143149
// On input change, update the search results
144150
$("#searchfield").on("input",function(e){

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp