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
Show 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
'
,
(
function
(
_this
)
{
return
function
(
event
)
{
const
target
=
$
(
event
.
target
);
const
target
=
$
(
event
.
target
);
const
value
=
target
.
val
();
const
value
=
target
.
val
();
const
ref
=
target
.
data
(
'
oldValue
'
);
const
ref
=
target
.
data
(
'
oldValue
'
);
const
oldValue
=
ref
!=
null
?
ref
:
''
;
const
oldValue
=
ref
!=
null
?
ref
:
''
;
if
(
value
!==
oldValue
)
{
if
(
value
!==
oldValue
)
{
target
.
data
(
'
oldValue
'
,
value
);
target
.
data
(
'
oldValue
'
,
value
);
_
this
.
findFile
();
this
.
findFile
();
return
_
this
.
element
return
this
.
element
.
find
(
'
tr.tree-item
'
)
.
find
(
'
tr.tree-item
'
)
.
eq
(
0
)
.
eq
(
0
)
.
addClass
(
'
selected
'
)
.
addClass
(
'
selected
'
)
.
focus
();
.
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