From 8cc86a967a05a8b124414bb6729a49ad64190197 Mon Sep 17 00:00:00 2001
From: Kevin Abel <kabel2@unl.edu>
Date: Tue, 16 Aug 2011 16:37:12 +0000
Subject: [PATCH] Remove a previous result head, if found.

---
 www/searchFunc.js | 1 +
 1 file changed, 1 insertion(+)

diff --git a/www/searchFunc.js b/www/searchFunc.js
index c2e129a..20c4c90 100644
--- a/www/searchFunc.js
+++ b/www/searchFunc.js
@@ -130,6 +130,7 @@ UNL_Search.onSearchComplete = function(control, searcher) {
 	
 	if (searcher.cursor.estimatedResultCount) {
 		var $resultHead = $("<div />").addClass('result_head').text('About ' + searcher.cursor.estimatedResultCount + ' results');
+		$('.result_head', control.root).remove();
 		$('.gsc-results', control.root).before($resultHead);
 	}
 	
-- 
GitLab