File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -162,17 +162,17 @@ function disableQueryFields() {
162162 JQ_SEARCH_BTN . removeClass ( 'is-loading' ) ;
163163}
164164
165+ function setQuery ( query ) {
166+ JQ_REPO_FIELD . val ( query ) ;
167+ }
168+
165169function getQueryOrDefault ( defaultVal ) {
166170 if ( ! JQ_REPO_FIELD . val ( ) ) {
167- JQ_REPO_FIELD . val ( defaultVal ) ;
171+ setQuery ( defaultVal ) ;
168172 }
169173 return JQ_REPO_FIELD . val ( ) ;
170174}
171175
172- function setQuery ( query ) {
173- JQ_REPO_FIELD . val ( query ) ;
174- }
175-
176176function hideFilterContainer ( ) {
177177 JQ_FILTER_CONTAINER . hide ( ) ;
178178}
@@ -206,7 +206,7 @@ function getRepoNameFromUrl() {
206206function landingPageTrigger ( ) {
207207 const query = getRepoNameFromUrl ( ) ;
208208 if ( query ) {
209- JQ_REPO_FIELD . val ( query ) ;
209+ setQuery ( query ) ;
210210 return "" ;
211211 } else {
212212 return LANDING_PAGE_INIT_MSG ;
You can’t perform that action at this time.
0 commit comments