 # Hides the result pane. When the animation is done, the ``animationDone()``
 # will be called.
 hideResultPane = ->
-	console.debug 'hideResultPane()'
 	if $('#search_result_pane').length > 0
 		animationActive = true
 		$('#search_result_pane').slideUp(animationTime, animationDone)
 
 # Inserts the current data into the results pane and slides it down.
 updateResultPane = ->
-	console.debug('updateResultPane()')
-
 	if ajaxActive || animationActive
-		console.debug('updateResultPane(): Quitting since active.')
 		return
 
 	if currentData is null
-		console.debug('updateResultPane(): currentData is null')
 		return
 
 	initResultPane()


# Called when the slide up animation is done.
animationDone = ->
	console.debug('animationDone()')
	animationActive = false
	updateResultPane()


# It does not necessarily fire off an AJAX request if the last one was just a
# little time ago.
formChanged = ->
	newQuery = $(this).val()

	if newQuery == currentQuery
		return

	currentQuery = newQuery
