From: Dennis Schafroth Date: Mon, 7 Jun 2010 13:40:28 +0000 (+0200) Subject: Fix closing tag in iphone details. Remove the div navi. X-Git-Tag: v1.4.2~7^2~17 X-Git-Url: http://lists.indexdata.dk/cgi-bin?a=commitdiff_plain;h=284eaefa1c5e4bceadc4a0dba031cdf755822144;p=pazpar2-moved-to-github.git Fix closing tag in iphone details. Remove the div navi. --- diff --git a/www/iphone/example_client.js b/www/iphone/example_client.js index 755b68c..4edf65c 100644 --- a/www/iphone/example_client.js +++ b/www/iphone/example_client.js @@ -59,7 +59,7 @@ function my_onshow(data) { ' of ' + data.merged + ' (found: ' + data.total + ')'; drawPager(pager); - // navi + var results = document.getElementById("results"); var html = []; @@ -287,13 +287,11 @@ function domReady () function applicationMode(newmode) { var searchdiv = document.getElementById("searchForm"); - var navi = document.getElementById("navi"); if (newmode) inApp = newmode; if (inApp) { document.getElementById("heading").style.display="none"; searchdiv.style.display = 'none'; - navi.style.display = 'none'; } else { searchdiv.style.display = ''; @@ -371,11 +369,6 @@ function limitOrResetQuery (field, value, selected) { // limit by target functions function limitTarget (id, name) { - var navi = document.getElementById('navi'); - navi.innerHTML = - 'Source: ' - + name + ''; - navi.innerHTML += '
'; curFilter = 'pz:id=' + id; resetPage(); loadSelect(); @@ -386,8 +379,6 @@ function limitTarget (id, name) function delimitTarget () { - var navi = document.getElementById('navi'); - navi.innerHTML = ''; curFilter = null; resetPage(); loadSelect(); @@ -557,7 +548,7 @@ function renderDetails(data, marker) function renderLine(title, value) { if (value != undefined) - return '
  • ' + title + '

    ' + value + '
  • '; + return '
  • ' + title + '

    ' + value + '
  • '; return ''; } @@ -576,18 +567,25 @@ function renderLineEmail(dtitle, email, display) { function renderDetails_iphone(data, marker) { //return renderDetails(data,marker); - - var details = '
    '; + + + var details = '' +/* + details = ''; +*/ if (marker) details += '

    '+ marker + '

    '; details += '
      '; if (data["md-title"] != undefined) { details += '
    • Title

      ' + data["md-title"]; if (data["md-title-remainder"] !== undefined) { - details += '' + data["md-title-remainder"] + ' '; + details += ' ' + data["md-title-remainder"] + ' '; } if (data["md-title-responsibility"] !== undefined) { - details += ' '+ data["md-title-responsibility"] +''; + details += ''+ data["md-title-responsibility"] +''; } details += '' details += '
    • ' @@ -599,7 +597,7 @@ function renderDetails_iphone(data, marker) + renderLine('Subject', data["location"][0]["md-subject"]); if (data["location"][0]["@name"] != undefined) - renderLine(details, 'Location', data["location"][0]["@name"] + " (" +data["location"][0]["@id"] + ")"); + details += renderLine('Location', data["location"][0]["@name"] + " (" +data["location"][0]["@id"] + ")"); details += '
    '; return details; }