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 | 2b87b3db5bd5b6eea69cddbcf6b57c87178c7f93 (patch) | |
tree | 7391c72db558b1c3d344f311257d0b18c906686b /static | |
parent | 98db6595c5598bfc5af1c3a7a29b15c031e4767f (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')
-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; + } } } -} |