diff --git a/www/js/my.full.js b/www/js/my.full.js index 2de931f627..c22f475b77 100644 --- a/www/js/my.full.js +++ b/www/js/my.full.js @@ -727,12 +727,12 @@ function toggleSearch() */ function ajaxGetSearchForm(querybox) { - querybox = typeof(querybox) == 'undefined' ? '#querybox' : querybox; - if($(querybox).html() == '') + var $querybox = $(querybox || '#querybox'); + if($querybox.html() == '') { $.get(createLink('search', 'buildForm'), function(data) { - $(querybox).html(data); + $querybox.html(data); }); } }