From ff2d391d0aa2f7b6ee7e54cf84c15d45fa1f10db Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Tue, 23 Sep 2014 07:34:27 +0000 Subject: improve formatting, whitespace changes only git-svn-id: svn+ssh://svn.debian.org/svn/secure-testing@28973 e39458fd-73e7-0310-bf30-c45bca0a0e42 --- static/script.js | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'static') diff --git a/static/script.js b/static/script.js index 62ec7ebf29..cf0a463cd7 100644 --- a/static/script.js +++ b/static/script.js @@ -1,15 +1,16 @@ var old_query_value = ""; + function selectSearch() { -document.searchForm.query.focus(); + document.searchForm.query.focus(); } function onSearch(query) { -if (old_query_value == "") { - if (query.length > 5) { - old_query_value = query; - document.searchForm.submit(); - } else { - old_query_value = query; + if (old_query_value == "") { + if (query.length > 5) { + old_query_value = query; + document.searchForm.submit(); + } else { + old_query_value = query; + } } } -} -- cgit v1.2.3