Commit 00dc084
committed
search: initialize the results URL earlier
When a person types really fast into the search box and also hits the
Enter key really quickly after that, the current code directs the
browser to https://git-scm.com/undefined.
The reason? At that stage, the search results had not yet been retrieved
and as a consequence, the list of results to be shown in the live search
were not populated. But that's exactly from where this URL was obtained.
Let's just initialize that URL a lot earlier.
This fixes #2030
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>1 parent e47af0e commit 00dc084
1 file changed
+5
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
244 | 244 | | |
245 | 245 | | |
246 | 246 | | |
| 247 | + | |
| 248 | + | |
247 | 249 | | |
248 | 250 | | |
249 | 251 | | |
| |||
253 | 255 | | |
254 | 256 | | |
255 | 257 | | |
256 | | - | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
257 | 261 | | |
258 | 262 | | |
259 | 263 | | |
| |||
288 | 292 | | |
289 | 293 | | |
290 | 294 | | |
291 | | - | |
292 | | - | |
293 | 295 | | |
294 | 296 | | |
295 | | - | |
296 | 297 | | |
297 | 298 | | |
298 | 299 | | |
| |||
0 commit comments