Skip to content

Commit

Permalink
Minor JSHint fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Jackson authored and Paul Jackson committed Aug 15, 2012
1 parent 64d6ece commit 21ff6db
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions demos/index-eng.html
Expand Up @@ -318,6 +318,7 @@ <h1 id="wb-cont">Working examples</h1>
<ul>
<li><a href="zebra/columnhightlight.html"><span class="wb-invisible">Zebra striping - </span>Column highlight table</a></li>
<li><a href="zebra/simple.html"><span class="wb-invisible">Zebra striping - </span>Simple table</a></li>
<li><a href="zebra/simplegrouping.html"><span class="wb-invisible">Zebra striping - </span>Simple grouping table</a></li>
<li><a href="zebra/invoice.html"><span class="wb-invisible">Zebra striping - </span>Invoice table</a></li>
<li><a href="zebra/collevel.html"><span class="wb-invisible">Zebra striping - </span>Col and row level with summary table</a></li>
<li><a href="zebra/longtable.html"><span class="wb-invisible">Zebra striping - </span>Long table</a></li>
Expand Down
1 change: 1 addition & 0 deletions demos/index-fra.html
Expand Up @@ -247,6 +247,7 @@ <h1 id="wb-cont">Exemples pratiques</h1>
<ul>
<li><a href="zebra/columnhightlight.html"><span class="wb-invisible">Rayage du zèbre - </span><span lang="en">Column highlight table</span></a></li>
<li><a href="zebra/simple.html"><span class="wb-invisible">Rayage du zèbre - </span><span lang="en">Simple table</span></a></li>
<li><a href="zebra/simplegrouping.html"><span class="wb-invisible">Zebra striping - </span><span lang="en">Simple grouping table</span></a></li>
<li><a href="zebra/invoice.html"><span class="wb-invisible">Rayage du zèbre - </span><span lang="en">Invoice table</span></a></li>
<li><a href="zebra/collevel.html"><span class="wb-invisible">Rayage du zèbre - </span><span lang="en">Col and row level with summary table</span></a></li>
<li><a href="zebra/longtable.html"><span class="wb-invisible">Rayage du zèbre - </span><span lang="en">Long table</span></a></li>
Expand Down
2 changes: 1 addition & 1 deletion src/js/workers/parser.table.js
Expand Up @@ -10,7 +10,7 @@
*/
/*global jQuery: false*/
(function ($) {
+ "use strict";
"use strict";
var _pe = window.pe || {
fn : {}
};
Expand Down
5 changes: 2 additions & 3 deletions src/js/workers/zebra.js
Expand Up @@ -111,9 +111,8 @@
// Data Column Group
if (tblparser.colgroup) {
for (i = 0; i < tblparser.colgroup.length; i += 1) {
if (tblparser.colgroup[i].elem && ((i > 0 && tblparser.colgroup[i].type === 3 && tblparser.colgroup[i - 1].type === 3 && tblparser.colgroup[i - 1].level > tblparser.colgroup[i].level)
||
(tblparser.colgroup[i].type === 2 && (i > 0 && tblparser.colgroup[0].type === 2 || i > 1 && tblparser.colgroup[0].type === 1)))) {
if (tblparser.colgroup[i].elem && ((i > 0 && tblparser.colgroup[i].type === 3 && tblparser.colgroup[i - 1].type === 3 && tblparser.colgroup[i - 1].level > tblparser.colgroup[i].level) ||
(tblparser.colgroup[i].type === 2 && (i > 0 && tblparser.colgroup[0].type === 2 || i > 1 && tblparser.colgroup[0].type === 1)))) {
$(tblparser.colgroup[i].elem).addClass('table-colgroupmarker');
}
}
Expand Down

0 comments on commit 21ff6db

Please sign in to comment.