diff options
author | Holger Levsen <holger@debian.org> | 2014-09-23 07:34:27 +0000 |
---|---|---|
committer | Holger Levsen <holger@debian.org> | 2014-09-23 07:34:27 +0000 |
commit | 5f2153d15db19d0020cee3e9046bb6e27f684b46 (patch) | |
tree | 789c14b1f5b51aad0de86f8aa111e40b11d52710 /static/script.js | |
parent | 9edad4867ef98839478b51f55b46962dc9c56d80 (diff) |
improve formatting, whitespace changes only
git-svn-id: svn+ssh://svn.debian.org/svn/secure-testing@28973 e39458fd-73e7-0310-bf30-c45bca0a0e42
Diffstat (limited to 'static/script.js')
-rw-r--r-- | static/script.js | 17 |
1 files changed, 9 insertions, 8 deletions
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; + } } } -} |