Skip to content

Commit

Permalink
Add keepHtml condition if rowHeaders is true
Browse files Browse the repository at this point in the history
  • Loading branch information
Nico committed Jun 11, 2015
1 parent 6463625 commit 1f9747e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion jquery.restable.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,11 @@

if (s.rowHeaders) {
if (!$result[value]) { $result[value] = {}; }
$result[value][$row.children('td:nth-child(1)').text()] = $row.children('td:nth-child(' + (index + 1) + ')').text();
if(s.keepHtml) {
$result[value][$row.children('td:nth-child(1)').html()] = $row.children('td:nth-child(' + (index + 1) + ')').html();
} else {
$result[value][$row.children('td:nth-child(1)').text()] = $row.children('td:nth-child(' + (index + 1) + ')').text();
}
} else {
if (!$result[$row_number]) { $result[$row_number] = {}; }
if (s.keepHtml){
Expand Down
2 changes: 1 addition & 1 deletion jquery.restable.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 1f9747e

Please sign in to comment.