From cc89c4cd39510e360c6700b8aa605fbba036098b Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Mon, 23 Nov 2015 13:44:02 -0500 Subject: [PATCH] added toggle animation to close on blur --- js/custom/pageSetup.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/js/custom/pageSetup.js b/js/custom/pageSetup.js index e7054dd..daff1ed 100644 --- a/js/custom/pageSetup.js +++ b/js/custom/pageSetup.js @@ -202,7 +202,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