summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/lib
diff options
context:
space:
mode:
authorJacob Schatz <jacobschatz@Jacobs-MBP.fios-router.home>2016-03-19 11:39:34 -0400
committerJacob Schatz <jacobschatz@Jacobs-MBP.fios-router.home>2016-03-25 09:48:12 -0400
commit6f48cb860957676273d1e7bfc1195195599ab0f1 (patch)
treee50d42d20c6da2d983acd9634a0a4129a398ee21 /app/assets/javascripts/lib
parent531331f79d63a736efd1d40d7ad40b5a277327fd (diff)
downloadgitlab-ce-6f48cb860957676273d1e7bfc1195195599ab0f1.tar.gz
Fix broken functionality in sidebar after merge.
Added nice animations too.
Diffstat (limited to 'app/assets/javascripts/lib')
-rw-r--r--app/assets/javascripts/lib/animate.js.coffee13
1 files changed, 13 insertions, 0 deletions
diff --git a/app/assets/javascripts/lib/animate.js.coffee b/app/assets/javascripts/lib/animate.js.coffee
new file mode 100644
index 00000000000..8f892b5a2b9
--- /dev/null
+++ b/app/assets/javascripts/lib/animate.js.coffee
@@ -0,0 +1,13 @@
+((w) ->
+
+ w.glAnimate = ($el, animation, done) ->
+ $el
+ .removeClass()
+ .addClass(animation + ' animated')
+ .one 'webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend', ->
+ $(this).removeClass()
+ return
+ return
+ return
+
+) window \ No newline at end of file