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:
983f00a
)
Fix missing detail div with an id.
author
Dennis Schafroth
<dennis@indexdata.com>
Mon, 7 Jun 2010 14:33:34 +0000
(16:33 +0200)
committer
Dennis Schafroth
<dennis@indexdata.com>
Mon, 7 Jun 2010 14:33:34 +0000
(16:33 +0200)
www/iphone/example_client.js
patch
|
blob
|
history
diff --git
a/www/iphone/example_client.js
b/www/iphone/example_client.js
index
4edf65c
..
221620a
100644
(file)
--- a/
www/iphone/example_client.js
+++ b/
www/iphone/example_client.js
@@
-490,6
+490,7
@@
function showDetails (prefixRecId) {
// remove current detailed view if any
var detRecordDiv = document.getElementById('det_'+oldRecId);
// remove current detailed view if any
var detRecordDiv = document.getElementById('det_'+oldRecId);
+ //alert("oldRecId: " + oldRecId + " " + detRecordDiv != null);
// lovin DOM!
if (detRecordDiv)
detRecordDiv.parentNode.removeChild(detRecordDiv);
// lovin DOM!
if (detRecordDiv)
detRecordDiv.parentNode.removeChild(detRecordDiv);
@@
-569,7
+570,7
@@
function renderDetails_iphone(data, marker)
//return renderDetails(data,marker);
//return renderDetails(data,marker);
- var details = ''
+ var details = '<div class="details" id="det_'+data.recid+'" >'
/*
details = '<div id="header" id="det_'+data.recid+'">'
+ '<h1>Detailed Info</h1>'
/*
details = '<div id="header" id="det_'+data.recid+'">'
+ '<h1>Detailed Info</h1>'
@@
-598,7
+599,7
@@
function renderDetails_iphone(data, marker)
if (data["location"][0]["@name"] != undefined)
details += renderLine('Location', data["location"][0]["@name"] + " (" +data["location"][0]["@id"] + ")");
if (data["location"][0]["@name"] != undefined)
details += renderLine('Location', data["location"][0]["@name"] + " (" +data["location"][0]["@id"] + ")");
- details += '</ul>';
+ details += '</ul></div>';
return details;
}
return details;
}