Commits

Anonymous committed 5f6422e

The auto-completion is now working for "*Oz" alone - but it works!

Comments (0)

Files changed (1)

greasemonkey-scripts/mediawiki-edit-ozy-and-millie-transcripts.user.js

 
 function autocomplete_box_on_press(e)
 {
-    alert("foo");
     clearTimeout(timeout);
     setTimeout(autocomplete_box, 10);
 }
 
     var line = elem.value.substring(line_start, line_end);
 
-    alert("Line == " + line);
     if (line == "*Oz")
     {
         elem.value = elem.value.substring(0, line_start) + "* '''Ozy''':" + elem.value.substring(line_end);
 })();
 
 
-    $("#wpTextbox1").keypress(autocomplete_box);
+    $("#wpTextbox1").keypress(autocomplete_box_on_press);
 
 }