From 8ddac0ccb88c1cbc9cdbf33f07c87b91439d47a8 Mon Sep 17 00:00:00 2001 From: Jakub Skoczen Date: Fri, 20 Jun 2008 15:09:53 +0200 Subject: [PATCH] Sligth fixes. --- www/jsdemo/example_client.js | 14 +++++++------- www/jsdemo/styles.css | 3 ++- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/www/jsdemo/example_client.js b/www/jsdemo/example_client.js index 6233537..732415e 100644 --- a/www/jsdemo/example_client.js +++ b/www/jsdemo/example_client.js @@ -59,12 +59,13 @@ function my_onshow(data) { for (var i = 0; i < data.hits.length; i++) { var hit = data.hits[i]; - var html = '
' + var html = '
' +'' + (i + 1 + recPerPage * ( curPage - 1)) + '. ' +'' + hit["md-title"] + ' '; if (hit["md-title-remainder"] !== undefined) { - html += '' + hit["md-title-remainder"] + ''; + html += '' + hit["md-title-remainder"] + ' '; } if (hit["md-title-responsibility"] !== undefined) { html += '' + hit["md-title-responsibility"] + ''; @@ -95,7 +96,7 @@ function my_onterm(data) { for (var i = 0; i < data.xtargets.length; i++ ) { termlist.innerHTML += '' + + ' onclick="limitTarget(this.getAttribute(\'target_id\'), this.firstChild.nodeValue);return false;">' + data.xtargets[i].name + ' (' + data.xtargets[i].freq @@ -106,7 +107,7 @@ function my_onterm(data) { termlist.innerHTML += '
.::Subjects
'; for (var i = 0; i < data.subject.length; i++ ) { - termlist.innerHTML += '' + termlist.innerHTML += '' + data.subject[i].name + ' (' + data.subject[i].freq @@ -117,7 +118,7 @@ function my_onterm(data) { termlist.innerHTML += '
.::Authors
'; for (var i = 0; i < data.author.length; i++ ) { - termlist.innerHTML += '' + termlist.innerHTML += '' + data.author[i].name + ' (' + data.author[i].freq @@ -214,7 +215,7 @@ function limitTarget (id, name) { var navi = document.getElementById('navi'); navi.innerHTML = - 'Source: ' + 'Source: ' + name + ''; navi.innerHTML += '
'; curFilter = 'pz:id=' + id; @@ -339,7 +340,6 @@ function showDetails ( prefixRecId ) { } curDetRecId = recId; - // request the record my_paz.record(recId); } diff --git a/www/jsdemo/styles.css b/www/jsdemo/styles.css index 6fb4652..86da952 100644 --- a/www/jsdemo/styles.css +++ b/www/jsdemo/styles.css @@ -75,12 +75,13 @@ div.record { div.details { border: 3px dashed gray; + color: gray; padding: 5px; margin: 4px; } #switchmenu { - padding-bottom: 4px; + padding-bottom: 3px; text-align: right; } -- 1.7.10.4