From 5c16e860a112eed4478255baab510bcf5aa4ae53 Mon Sep 17 00:00:00 2001 From: shish Date: Tue, 8 May 2007 21:14:53 +0000 Subject: [PATCH] cleaning out scripts git-svn-id: file:///home/shish/svn/shimmie2/trunk@80 7f39781d-f577-437e-ae19-be835c7a54ca --- scripts/shimmie.js | 70 ---------------------------------------------- 1 file changed, 70 deletions(-) diff --git a/scripts/shimmie.js b/scripts/shimmie.js index cdbed93f..14dd1fb3 100644 --- a/scripts/shimmie.js +++ b/scripts/shimmie.js @@ -4,8 +4,6 @@ window.onload = function(e) { var sections=get_sections(); for(var i=0;i"+results[i]+""; - } -} - -function initAjax(boxname, areaname) { - var box = byId(boxname); - if(!box) return; - - addEvent( - box, - "keyup", - function f() { - starter = endWord(box.value); - - if(resultCache[starter]) { - fillCompletionZone(boxname, areaname, resultCache[starter]); - } - else { - ajaxRequest( - "ajax.php?start="+starter, - function g(text) { - resultCache[starter] = text.split("\n"); - fillCompletionZone(boxname, areaname, resultCache[starter]); - } - ); - } - }, - false - ); -} - function initGray(boxname, text) { var box = byId(boxname); if(!box) return; @@ -115,17 +59,3 @@ function showUp(elem) { } } - -function check_int(box, min, max) { - check(box, (box.value >= min && box.value <= max)); -} - -function check(box, bool) { - if(bool) { - box.style.background = "#AFA"; - } - else { - box.style.background = "#FAA"; - } -} -