From bcf480e639b2e6f99374e73f400e6e32568e1222 Mon Sep 17 00:00:00 2001 From: Isaac Bythewood Date: Tue, 12 Mar 2013 05:05:43 +0000 Subject: [PATCH] Add fade to edit buttons and fix queueing of animation --- pinry/static/js/pinry.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pinry/static/js/pinry.js b/pinry/static/js/pinry.js index 3c0cb52..b4b23a5 100644 --- a/pinry/static/js/pinry.js +++ b/pinry/static/js/pinry.js @@ -71,7 +71,9 @@ $(window).load(function() { thisPin.find('.editable').hide(); thisPin.off('hover'); thisPin.hover(function() { - thisPin.find('.editable').toggle(); + thisPin.find('.editable').stop(true, true).fadeIn(300); + }, function() { + thisPin.find('.editable').stop(true, false).fadeOut(300); }); });