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
adda2752
Commit
adda2752
authored
Jan 18, 2021
by
Lukas Eipert
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Awards handler: replace jquery scrolling with native version
parent
46527a69
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
+2
-6
app/assets/javascripts/awards_handler.js
app/assets/javascripts/awards_handler.js
+2
-6
No files found.
app/assets/javascripts/awards_handler.js
View file @
adda2752
...
@@ -5,6 +5,7 @@ import $ from 'jquery';
...
@@ -5,6 +5,7 @@ import $ from 'jquery';
import
Cookies
from
'
js-cookie
'
;
import
Cookies
from
'
js-cookie
'
;
import
{
uniq
}
from
'
lodash
'
;
import
{
uniq
}
from
'
lodash
'
;
import
*
as
Emoji
from
'
~/emoji
'
;
import
*
as
Emoji
from
'
~/emoji
'
;
import
{
scrollToElement
}
from
'
~/lib/utils/common_utils
'
;
import
{
dispose
,
fixTitle
}
from
'
~/tooltips
'
;
import
{
dispose
,
fixTitle
}
from
'
~/tooltips
'
;
import
{
deprecatedCreateFlash
as
flash
}
from
'
./flash
'
;
import
{
deprecatedCreateFlash
as
flash
}
from
'
./flash
'
;
import
axios
from
'
./lib/utils/axios_utils
'
;
import
axios
from
'
./lib/utils/axios_utils
'
;
...
@@ -495,12 +496,7 @@ export class AwardsHandler {
...
@@ -495,12 +496,7 @@ export class AwardsHandler {
}
}
scrollToAwards
()
{
scrollToAwards
()
{
const
options
=
{
scrollToElement
(
'
.awards
'
,
{
offset
:
-
110
});
scrollTop
:
$
(
'
.awards
'
).
offset
().
top
-
110
,
};
// eslint-disable-next-line no-jquery/no-animate
return
$
(
'
body, html
'
).
animate
(
options
,
200
);
}
}
addEmojiToFrequentlyUsedList
(
emoji
)
{
addEmojiToFrequentlyUsedList
(
emoji
)
{
...
...
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