Skip to content

Commit

Permalink
Add id to table rows by using table id and row id
Browse files Browse the repository at this point in the history
  • Loading branch information
Thai Wood committed Feb 6, 2018
1 parent d6db1fd commit a47e424
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inline-gdocs-viewer.php
Original file line number Diff line number Diff line change
Expand Up @@ -613,7 +613,7 @@ private function dataToHtml ($r, $options, $caption = '') {

$html .= "<thead>\n";
foreach ( $thead as $v ) {
$html .= "<tr id=\"" . esc_attr( $id ) . '-row-$ir" class="row-$ir ' . $this->evenOrOdd( $ir ) . "\">";
$html .= "<tr id=\"" . esc_attr( $id ) . "-row-$ir\" class=\"row-$ir " . $this->evenOrOdd( $ir ) . "\">";
$ir++;
$ic = 1; // reset column counting
foreach ( $v as $th ) {
Expand Down

0 comments on commit a47e424

Please sign in to comment.