Skip to content

Commit

Permalink
Merge pull request #10 from nightgrey/v0.1.2
Browse files Browse the repository at this point in the history
Add keepHtml condition if rowHeaders is true
  • Loading branch information
micc83 committed Jun 25, 2015
2 parents 6463625 + 1f9747e commit 4422b11
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 4422b11

Please sign in to comment.