Mercurial > hg > STI-GWT
changeset 72:4d3df00f5b98 trimmed_data
added comments for HTML content in cells
author | Sebastian Kruse <skruse@mpiwg-berlin.mpg.de> |
---|---|
date | Fri, 11 Jan 2013 10:15:45 +0100 |
parents | a610b45d0f90 |
children | 02cdf454d94b |
files | war/scripts/sti/STICore.js |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/war/scripts/sti/STICore.js Fri Jan 11 09:41:16 2013 +0100 +++ b/war/scripts/sti/STICore.js Fri Jan 11 10:15:45 2013 +0100 @@ -380,15 +380,17 @@ lastHeader = $(this).text(); isHeader = false; } else { - //var value = $(this).text(); var value = ""; + //if this td contains HTML, serialize all + //it's children (the "content"!) $(this).children().each( function() { value += (new XMLSerializer()).serializeToString(this); } ); + //no HTML content (or no content at all) if (value.length == 0) value = $(this).text();