From 9b3c4ffbb2892a51ace22ba77fdc1a5078536478 Mon Sep 17 00:00:00 2001 From: Kenneth Jao Date: Sun, 7 May 2017 01:45:37 -0400 Subject: [PATCH] reverted dropdown animation code --- hourglass/client/main/main.js | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/hourglass/client/main/main.js b/hourglass/client/main/main.js index 29f2f23..235ff1d 100644 --- a/hourglass/client/main/main.js +++ b/hourglass/client/main/main.js @@ -878,19 +878,17 @@ Template.classesMode.helpers({ toggleOptionMenu = function(toggle, menu) { if(toggle) { $(".selectedOption").removeClass("selectedOption"); - $("#" + menu).next().css('opacity', 0) - $("#" + menu).next().velocity("slideDown", 100); - $("#" + menu).next().velocity( + $("#" + menu).next() + .css('opacity', 0) + .slideDown(300) + .animate( { opacity: 1 }, - { queue: false, duration: 50 } + { queue: false, duration: 100 } ); optionOpen = [menu, toggle]; } else { - $("#" + menu).next().velocity("slideUp", { - duration: 100, - complete: function() { - $("#" + menu).next().css("opacity", 0); - } + $("#" + menu).next().slideUp(100, function() { + $(this).css("opacity", 0); }); optionOpen = [null, toggle]; }