File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -201,12 +201,7 @@ window.addEventListener('DOMContentLoaded', () => {
201201 }
202202 return resultRight . id - resultLeft . id ;
203203 } ) ;
204- let searchResultList = '<ul class="search-result-list">' ;
205- resultItems . forEach ( result => {
206- searchResultList += result . item ;
207- } ) ;
208- searchResultList += '</ul>' ;
209- resultContent . innerHTML = searchResultList ;
204+ resultContent . innerHTML = `<ul class="search-result-list">${ resultItems . map ( result => result . item ) . join ( '' ) } </ul>` ;
210205 window . pjax && window . pjax . refresh ( resultContent ) ;
211206 }
212207 } ;
@@ -233,6 +228,7 @@ window.addEventListener('DOMContentLoaded', () => {
233228 } ) ;
234229 // Remove loading animation
235230 document . getElementById ( 'no-result' ) . innerHTML = '<i class="fa fa-search fa-5x"></i>' ;
231+ inputEventFunction ( ) ;
236232 } ) ;
237233 } ;
238234
You can’t perform that action at this time.
0 commit comments