Mercurial > hg > STI-GWT
comparison war/scripts/sti/STICore.js @ 71:a610b45d0f90 trimmed_data
Allow HTML in all Cells
author | Sebastian Kruse <skruse@mpiwg-berlin.mpg.de> |
---|---|
date | Fri, 11 Jan 2013 09:41:16 +0100 |
parents | e6b72868e395 |
children | 4d3df00f5b98 |
comparison
equal
deleted
inserted
replaced
70:e6b72868e395 | 71:a610b45d0f90 |
---|---|
378 function() { | 378 function() { |
379 if (isHeader) { | 379 if (isHeader) { |
380 lastHeader = $(this).text(); | 380 lastHeader = $(this).text(); |
381 isHeader = false; | 381 isHeader = false; |
382 } else { | 382 } else { |
383 var value = $(this).text(); | 383 //var value = $(this).text(); |
384 var value = ""; | |
385 | |
386 $(this).children().each( | |
387 function() { | |
388 value += (new XMLSerializer()).serializeToString(this); | |
389 } | |
390 ); | |
391 | |
392 if (value.length == 0) | |
393 value = $(this).text(); | |
394 | |
384 if (descriptionData[lastHeader] != null) | 395 if (descriptionData[lastHeader] != null) |
385 //append if a field occures more than once | 396 //append if a field occures more than once |
386 descriptionData[lastHeader] += "\n" + value; | 397 descriptionData[lastHeader] += "\n" + value; |
387 else | 398 else |
388 descriptionData[lastHeader] = value; | 399 descriptionData[lastHeader] = value; |