Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
13b41465
Commit
13b41465
authored
Dec 23, 2019
by
Inactive Account
Committed by
Phil Hughes
Dec 23, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove IIFEs from project_find_file.js
parent
d4fd6eb5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
20 deletions
+21
-20
app/assets/javascripts/project_find_file.js
app/assets/javascripts/project_find_file.js
+15
-20
changelogs/unreleased/patch-36.yml
changelogs/unreleased/patch-36.yml
+6
-0
No files found.
app/assets/javascripts/project_find_file.js
View file @
13b41465
...
@@ -55,26 +55,21 @@ export default class ProjectFindFile {
...
@@ -55,26 +55,21 @@ export default class ProjectFindFile {
initEvent
()
{
initEvent
()
{
this
.
inputElement
.
off
(
'
keyup
'
);
this
.
inputElement
.
off
(
'
keyup
'
);
this
.
inputElement
.
on
(
this
.
inputElement
.
on
(
'
keyup
'
,
event
=>
{
'
keyup
'
,
const
target
=
$
(
event
.
target
);
(
function
(
_this
)
{
const
value
=
target
.
val
();
return
function
(
event
)
{
const
ref
=
target
.
data
(
'
oldValue
'
);
const
target
=
$
(
event
.
target
);
const
oldValue
=
ref
!=
null
?
ref
:
''
;
const
value
=
target
.
val
();
if
(
value
!==
oldValue
)
{
const
ref
=
target
.
data
(
'
oldValue
'
);
target
.
data
(
'
oldValue
'
,
value
);
const
oldValue
=
ref
!=
null
?
ref
:
''
;
this
.
findFile
();
if
(
value
!==
oldValue
)
{
return
this
.
element
target
.
data
(
'
oldValue
'
,
value
);
.
find
(
'
tr.tree-item
'
)
_this
.
findFile
();
.
eq
(
0
)
return
_this
.
element
.
addClass
(
'
selected
'
)
.
find
(
'
tr.tree-item
'
)
.
focus
();
.
eq
(
0
)
}
.
addClass
(
'
selected
'
)
});
.
focus
();
}
};
})(
this
),
);
}
}
findFile
()
{
findFile
()
{
...
...
changelogs/unreleased/patch-36.yml
0 → 100644
View file @
13b41465
---
title
:
refactor javascript to remove Immediately Invoked Function Expression from
project file search
merge_request
:
19192
author
:
Brian Luckenbill
type
:
other
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment