projects
/
pazpar2-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
9028635
)
More responsive record view.
author
Anders S. Mortensen
<sondberg@indexdata.dk>
Wed, 10 Jan 2007 12:20:51 +0000
(12:20 +0000)
committer
Anders S. Mortensen
<sondberg@indexdata.dk>
Wed, 10 Jan 2007 12:20:51 +0000
(12:20 +0000)
www/demo/search.js
patch
|
blob
|
history
diff --git
a/www/demo/search.js
b/www/demo/search.js
index
81be27d
..
c996c1b
100644
(file)
--- a/
www/demo/search.js
+++ b/
www/demo/search.js
@@
-1,4
+1,4
@@
-/* $Id: search.js,v 1.14 2007-01-10 12:15:46 sondberg Exp $
+/* $Id: search.js,v 1.15 2007-01-10 12:20:51 sondberg Exp $
* ---------------------------------------------------
* Javascript container
*/
* ---------------------------------------------------
* Javascript container
*/
@@
-197,6
+197,12
@@
function create_element (name, cdata) {
}
}
+function clear_cell (cell) {
+ while (cell.hasChildNodes())
+ cell.removeChild(cell.firstChild);
+}
+
+
function show_records()
{
if (xshow.readyState != 4)
function show_records()
{
if (xshow.readyState != 4)
@@
-205,8
+211,8
@@
function show_records()
var xml = xshow.responseXML;
var body = document.getElementById("body");
var hits = xml.getElementsByTagName("hit");
var xml = xshow.responseXML;
var body = document.getElementById("body");
var hits = xml.getElementsByTagName("hit");
-
- body.innerHTML = '';
+
+ clear_cell(body);
if (!hits[0]) // We should never get here with blocking operations
{
if (!hits[0]) // We should never get here with blocking operations
{