Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AlekSIS-Core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
AlekSIS®
Official
AlekSIS-Core
Commits
f9fdc329
Commit
f9fdc329
authored
3 years ago
by
Julian
Browse files
Options
Downloads
Patches
Plain Diff
Fix search reloading javascript event handler
parent
8e2d2ba1
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!688
Resolve "Fix search.js autocompletion"
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
aleksis/core/static/js/search.js
+3
-2
3 additions, 2 deletions
aleksis/core/static/js/search.js
with
3 additions
and
2 deletions
aleksis/core/static/js/search.js
+
3
−
2
View file @
f9fdc329
...
...
@@ -32,10 +32,11 @@ Autocomplete.prototype.setup = function () {
// Trigger the "keyup" event if input gets focused
this
.
query_box
.
focus
(
function
()
{
self
.
query_box
.
trigger
(
"
keydown
"
);
self
.
query_box
.
trigger
(
"
input
"
);
});
this
.
query_box
.
keyup
(
function
()
{
this
.
query_box
.
on
(
"
input
"
,
()
=>
{
console
.
log
(
"
Input changed, fetching again...
"
)
var
query
=
self
.
query_box
.
val
();
if
(
query
.
length
<
self
.
minimum_length
)
{
...
...
This diff is collapsed.
Click to expand it.
Julian
@ZugBahnHof
mentioned in commit
2f0c200f
·
3 years ago
mentioned in commit
2f0c200f
mentioned in commit 2f0c200fc581b1e2e509c982e077ba871ca8e191
Toggle commit list
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment