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
e9c0c464
Commit
e9c0c464
authored
Mar 24, 2021
by
Thomas Randolph
Committed by
Jacques Erasmus
Mar 24, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove calls to jQuery animations
parent
4aa1e927
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
15 deletions
+8
-15
changelogs/unreleased/tor-defect-remove-endless-scroll-jquery-animation.yml
...sed/tor-defect-remove-endless-scroll-jquery-animation.yml
+6
-0
vendor/assets/javascripts/jquery.endless-scroll.js
vendor/assets/javascripts/jquery.endless-scroll.js
+2
-15
No files found.
changelogs/unreleased/tor-defect-remove-endless-scroll-jquery-animation.yml
0 → 100644
View file @
e9c0c464
---
title
:
Remove calls to jQuery animations to fix infinite scrolling on the Repository
commits page
merge_request
:
57379
author
:
type
:
fixed
vendor/assets/javascripts/jquery.endless-scroll.js
View file @
e9c0c464
...
...
@@ -19,7 +19,6 @@
* // using some custom options
* $(document).endlessScroll({
* fireOnce: false,
* fireDelay: false,
* loader: "<div class=\"loading\"><div>",
* callback: function(){
* alert("test");
...
...
@@ -30,7 +29,6 @@
*
* bottomPixels integer the number of pixels from the bottom of the page that triggers the event
* fireOnce boolean only fire once until the execution of the current event is completed
* fireDelay integer delay the subsequent firing, in milliseconds, 0 or false to disable delay
* loader string the HTML to be displayed during loading
* data string|function plain HTML data, can be either a string or a function that returns a string,
* when passed as a function it accepts one argument: fire sequence (the number
...
...
@@ -55,7 +53,6 @@
var
defaults
=
{
bottomPixels
:
50
,
fireOnce
:
true
,
fireDelay
:
150
,
loader
:
"
<br />Loading...<br />
"
,
data
:
""
,
insertAfter
:
"
div:last
"
,
...
...
@@ -102,21 +99,11 @@
data
=
typeof
options
.
data
==
'
function
'
?
options
.
data
.
apply
(
this
,
[
fireSequence
])
:
options
.
data
;
if
(
data
!==
false
)
{
$
(
options
.
insertAfter
).
after
(
"
<div id=
\"
endless_scroll_data
\"
>
"
+
data
+
"
</div>
"
);
$
(
"
#endless_scroll_data
"
).
hide
().
fadeIn
(
250
,
function
()
{
$
(
this
).
removeAttr
(
"
id
"
);});
$
(
options
.
insertAfter
).
after
(
"
<div>
"
+
data
+
"
</div>
"
);
options
.
callback
.
apply
(
this
,
[
fireSequence
]);
if
(
options
.
fireDelay
!==
false
||
options
.
fireDelay
!==
0
)
{
$
(
"
body
"
).
after
(
"
<div id=
\"
endless_scroll_marker
\"
></div>
"
);
// slight delay for preventing event firing twice
$
(
"
#endless_scroll_marker
"
).
fadeTo
(
options
.
fireDelay
,
1
,
function
()
{
$
(
this
).
remove
();
fired
=
false
;
});
}
else
fired
=
false
;
fired
=
false
;
}
$
(
"
#endless_scroll_loader
"
).
remove
();
...
...
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