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
fcf85fd0
Commit
fcf85fd0
authored
Dec 02, 2020
by
Tim Zallmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replaced last fadeTo in Commit history
parent
397f75b8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
app/assets/javascripts/commits.js
app/assets/javascripts/commits.js
+3
-3
No files found.
app/assets/javascripts/commits.js
View file @
fcf85fd0
...
@@ -31,7 +31,7 @@ export default class CommitsList {
...
@@ -31,7 +31,7 @@ export default class CommitsList {
const
search
=
this
.
searchField
.
val
();
const
search
=
this
.
searchField
.
val
();
if
(
search
===
this
.
lastSearch
)
return
Promise
.
resolve
();
if
(
search
===
this
.
lastSearch
)
return
Promise
.
resolve
();
const
commitsUrl
=
`
${
form
.
attr
(
'
action
'
)}
?
${
form
.
serialize
()}
`
;
const
commitsUrl
=
`
${
form
.
attr
(
'
action
'
)}
?
${
form
.
serialize
()}
`
;
this
.
content
.
fadeTo
(
'
fast
'
,
0.5
);
this
.
content
.
addClass
(
'
gl-opacity-5
'
);
const
params
=
form
.
serializeArray
().
reduce
(
const
params
=
form
.
serializeArray
().
reduce
(
(
acc
,
obj
)
=>
(
acc
,
obj
)
=>
Object
.
assign
(
acc
,
{
Object
.
assign
(
acc
,
{
...
@@ -47,7 +47,7 @@ export default class CommitsList {
...
@@ -47,7 +47,7 @@ export default class CommitsList {
.
then
(({
data
})
=>
{
.
then
(({
data
})
=>
{
this
.
lastSearch
=
search
;
this
.
lastSearch
=
search
;
this
.
content
.
html
(
data
.
html
);
this
.
content
.
html
(
data
.
html
);
this
.
content
.
fadeTo
(
'
fast
'
,
1.0
);
this
.
content
.
removeClass
(
'
gl-opacity-5
'
);
// Change url so if user reload a page - search results are saved
// Change url so if user reload a page - search results are saved
window
.
history
.
replaceState
(
window
.
history
.
replaceState
(
...
@@ -59,7 +59,7 @@ export default class CommitsList {
...
@@ -59,7 +59,7 @@ export default class CommitsList {
);
);
})
})
.
catch
(()
=>
{
.
catch
(()
=>
{
this
.
content
.
fadeTo
(
'
fast
'
,
1.0
);
this
.
content
.
removeClass
(
'
gl-opacity-5
'
);
this
.
lastSearch
=
null
;
this
.
lastSearch
=
null
;
});
});
}
}
...
...
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