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
0
Merge Requests
0
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
Léo-Paul Géneau
gitlab-ce
Commits
ce6a02ee
Commit
ce6a02ee
authored
Sep 11, 2017
by
Bryce Johnson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove animate.js and the issuable label pulse animation.
Nobody tell @jschatz1 :P
parent
f06d370b
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
57 deletions
+5
-57
app/assets/javascripts/labels_select.js
app/assets/javascripts/labels_select.js
+0
-7
app/assets/javascripts/lib/utils/animate.js
app/assets/javascripts/lib/utils/animate.js
+0
-49
app/assets/javascripts/main.js
app/assets/javascripts/main.js
+0
-1
changelogs/unreleased/refactor-animate-js.yml
changelogs/unreleased/refactor-animate-js.yml
+5
-0
No files found.
app/assets/javascripts/labels_select.js
View file @
ce6a02ee
...
...
@@ -127,13 +127,6 @@ import DropdownUtils from './filtered_search/dropdown_utils';
$
(
'
.has-tooltip
'
,
$value
).
tooltip
({
container
:
'
body
'
});
return
$value
.
find
(
'
a
'
).
each
(
function
(
i
)
{
return
setTimeout
((
function
(
_this
)
{
return
function
()
{
return
gl
.
animate
.
animate
(
$
(
_this
),
'
pulse
'
);
};
})(
this
),
200
*
i
);
});
});
};
$dropdown
.
glDropdown
({
...
...
app/assets/javascripts/lib/utils/animate.js
deleted
100644 → 0
View file @
f06d370b
/* eslint-disable func-names, space-before-function-paren, wrap-iife, no-param-reassign, no-void, prefer-template, no-var, new-cap, prefer-arrow-callback, consistent-return, max-len */
(
function
()
{
(
function
(
w
)
{
if
(
w
.
gl
==
null
)
{
w
.
gl
=
{};
}
if
(
gl
.
animate
==
null
)
{
gl
.
animate
=
{};
}
gl
.
animate
.
animate
=
function
(
$el
,
animation
,
options
,
done
)
{
if
((
options
!=
null
?
options
.
cssStart
:
void
0
)
!=
null
)
{
$el
.
css
(
options
.
cssStart
);
}
$el
.
removeClass
(
animation
+
'
animated
'
).
addClass
(
animation
+
'
animated
'
).
one
(
'
webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend
'
,
function
()
{
$
(
this
).
removeClass
(
animation
+
'
animated
'
);
if
(
done
!=
null
)
{
done
();
}
if
((
options
!=
null
?
options
.
cssEnd
:
void
0
)
!=
null
)
{
$el
.
css
(
options
.
cssEnd
);
}
});
};
gl
.
animate
.
animateEach
=
function
(
$els
,
animation
,
time
,
options
,
done
)
{
var
dfd
;
dfd
=
$
.
Deferred
();
if
(
!
$els
.
length
)
{
dfd
.
resolve
();
}
$els
.
each
(
function
(
i
)
{
setTimeout
((
function
(
_this
)
{
return
function
()
{
var
$this
;
$this
=
$
(
_this
);
return
gl
.
animate
.
animate
(
$this
,
animation
,
options
,
function
()
{
if
(
i
===
$els
.
length
-
1
)
{
dfd
.
resolve
();
if
(
done
!=
null
)
{
return
done
();
}
}
});
};
})(
this
),
time
*
i
);
});
return
dfd
.
promise
();
};
})(
window
);
}).
call
(
window
);
app/assets/javascripts/main.js
View file @
ce6a02ee
...
...
@@ -39,7 +39,6 @@ import './commit/file';
import
'
./commit/image_file
'
;
// lib/utils
import
'
./lib/utils/animate
'
;
import
'
./lib/utils/bootstrap_linked_tabs
'
;
import
'
./lib/utils/common_utils
'
;
import
'
./lib/utils/datetime_utility
'
;
...
...
changelogs/unreleased/refactor-animate-js.yml
0 → 100644
View file @
ce6a02ee
---
title
:
Remove animate.js and label animation.
merge_request
:
author
:
type
:
removed
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