JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
say when we're waiting for a definition
authorJason Woofenden <jason@jasonwoof.com>
Fri, 22 Feb 2013 02:45:41 +0000 (21:45 -0500)
committerJason Woofenden <jason@jasonwoof.com>
Fri, 22 Feb 2013 02:45:41 +0000 (21:45 -0500)
main.coffee

index b64d1f7..1700d10 100644 (file)
@@ -524,6 +524,7 @@ extract_wiktionary_definiton = (html) ->
 
 
 look_up_definition = (word) ->
 
 
 look_up_definition = (word) ->
+       $definition_body.html "Looking up definition for \"#{word}\"."
        $.ajax({
                url: "http://en.wiktionary.org/w/api.php?action=parse&format=json&page=#{word}"
                jsonpCallback: "lud_#{word}" # always use the same callback for the same word so it's cacheable
        $.ajax({
                url: "http://en.wiktionary.org/w/api.php?action=parse&format=json&page=#{word}"
                jsonpCallback: "lud_#{word}" # always use the same callback for the same word so it's cacheable