* ajust code.

This commit is contained in:
Catouse
2016-03-11 12:24:57 +08:00
parent 51b555c101
commit cd760834af
+3 -3
View File
@@ -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);
});
}
}