0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-11-26 09:32:47 +01:00

Fix topics dropdown (#10167)

Signed-off-by: jolheiser <john.olheiser@gmail.com>

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
This commit is contained in:
John Olheiser 2020-02-06 23:46:09 -06:00 committed by GitHub
parent 730f026c6e
commit d32b65ab68
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3329,7 +3329,7 @@ function initTopicbar() {
label: 'ui small label' label: 'ui small label'
}, },
apiSettings: { apiSettings: {
url: `${suburl}/api/v1/topics/search?q={encodeURIComponent(query)}`, url: `${suburl}/api/v1/topics/search?q={query}`,
throttle: 500, throttle: 500,
cache: false, cache: false,
onResponse(res) { onResponse(res) {