From 08e088ca67fd922892a4f462d9693cf3e495e05d Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Mon, 23 Nov 2015 13:45:46 -0500 Subject: [PATCH] toggle animation not working --- js/app.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/js/app.js b/js/app.js index 9f713c9..e4fe87b 100644 --- a/js/app.js +++ b/js/app.js @@ -211,7 +211,18 @@ $(document).ready(function () { $(".searchform").animate({width: 'toggle'}, 1000); $("li a.search").css("visibility", "hidden"); $('.searchform').css("left", "5px"); + $(".searchform input[type='text']").focus(); }); + $(".searchform input[type='text']").blur(function () { + $(".searchform").animate({width: 'toggle'}, 1000); + $('.searchform').css("right", "5px"); + $("li a.search").css("visibility", "visible"); + }); + + + + + -- 2.17.1