From 11bfcbc720bb39833efddc367ac671723f3944a2 Mon Sep 17 00:00:00 2001 From: Jeremy Kerr Date: Wed, 24 Sep 2008 16:21:38 +1000 Subject: [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 --- htdocs/js/autocomplete.js | 43 ------------------------------------------- 1 file changed, 43 deletions(-) delete mode 100644 htdocs/js/autocomplete.js (limited to 'htdocs/js/autocomplete.js') 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(); - } - - -} - -- cgit v1.2.3