Skip to content

Commit

Permalink
Fix issue where first row was being cut off
Browse files Browse the repository at this point in the history
Apparently, the course listing website no longer shows a nav row at the top of the table on every page. (Now it's only at the bottom.) I was not including the first row on every page (starting at page 2) in order to not include the nav row. Since they deleted
the nav row at the top, this had resulted in the first row of the actual results on pages 2+ being deleted.
  • Loading branch information
sid-kap committed Aug 29, 2017
1 parent 26a6dfb commit afcaa13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/registrar/contentScript.js
Expand Up @@ -284,7 +284,7 @@ function loadMorePages(body) {
$.each(rows, function(index, row) {
// Do not copy the first and last row of each table
// (we don't want the Previous page/Next page links)
if (index != 0 && index < len) {
if (index >= 0 && index < len) {
targetTable.append(row);
//console.log(row.innerText.replace(/\s{2,}/g, ' '));
}
Expand Down

0 comments on commit afcaa13

Please sign in to comment.