summaryrefslogtreecommitdiffstats
path: root/htdocs/js/autocomplete.js
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2008-09-24 16:21:38 +1000
committerJeremy Kerr <jk@ozlabs.org>2008-09-24 16:21:38 +1000
commit11bfcbc720bb39833efddc367ac671723f3944a2 (patch)
tree8e15b4f747cf74571825d56bf40c22229a131660 /htdocs/js/autocomplete.js
parent3a7eb8f4c66d7ff1657560ab824150dd5128a115 (diff)
downloadpatchwork-11bfcbc720bb39833efddc367ac671723f3944a2.tar.bz2
patchwork-11bfcbc720bb39833efddc367ac671723f3944a2.tar.xz
[html] Consolidate js files
We don't need most of the stuff in htdocs/js/. Put the only function required into a common.js, which we can add other stuff to. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'htdocs/js/autocomplete.js')
-rw-r--r--htdocs/js/autocomplete.js43
1 files changed, 0 insertions, 43 deletions
diff --git a/htdocs/js/autocomplete.js b/htdocs/js/autocomplete.js
deleted file mode 100644
index 115ffba..0000000
--- a/htdocs/js/autocomplete.js
+++ /dev/null
@@ -1,43 +0,0 @@
-
-
-function ac_keyup(input)
-{
- input.autocomplete.keyup();
-}
-
-function AutoComplete(input)
-{
- this.input = input;
- this.div = null;
- this.last_value = '';
-
- input.autocomplete = this;
-
- this.hide = function()
- {
- if (this.div) {
- this.div.style.display = 'none';
- this.div = null;
- }
-
- }
-
- this.show = function()
- {
- if (!this.div) {
- this.div =
-
- this.keyup = function()
- {
- value = input.value;
-
- if (value == this.last_value)
- return;
-
- if (value.length < 3) {
- this.hide();
- }
-
-
-}
-