diff --git a/unl_theme/scripts/social.js b/unl_theme/scripts/social.js index 2650137c8e0324734a797c47fdbf3e8871fe5034..efdc752f1dc8efd16ab5f0b99c857c033c450e4b 100644 --- a/unl_theme/scripts/social.js +++ b/unl_theme/scripts/social.js @@ -1,9 +1,11 @@ WDN.jQuery(document).ready(function() { - WDN.jQuery('form#searchform label').css({display: "block"); + WDN.jQuery('form#searchform label').css({display: "block"}); WDN.jQuery('form#searchform input#search_input').focus(function(){ - if (WDN.jQuery('#wdn_search_form input#search_input').val() != "") { - WDN.jQuery(this).siblings("label").hide(); + WDN.jQuery(this).siblings("label").hide(); + }); + WDN.jQuery('form#searchform input#search_input').blur(function(){ + if (WDN.jQuery('form#searchform input#search_input').val() == "") { + WDN.jQuery(this).siblings("label").show(); }; - }) - } -}) \ No newline at end of file + }); +}); \ No newline at end of file