From 284eaefa1c5e4bceadc4a0dba031cdf755822144 Mon Sep 17 00:00:00 2001 From: Dennis Schafroth Date: Mon, 7 Jun 2010 15:40:28 +0200 Subject: [PATCH] Fix closing tag in iphone details. Remove the div navi. --- www/iphone/example_client.js | 30 ++++++++++++++---------------- 1 file changed, 14 insertions(+), 16 deletions(-) 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; } -- 1.7.10.4