can't have num variable represent 2 things at once
diff --git a/dev.js b/dev.js
index f715c71..26637e8 100644
--- a/dev.js
+++ b/dev.js
@@ -337,12 +337,12 @@
`); } }
var allData = [];
var total = null;
- function call(num) {
- dtps.webReq("psGET", "/" + dtps.classes[num].loc + "/assignment?page=" + num, function(resp) {
+ function call(pag) {
+ dtps.webReq("psGET", "/" + dtps.classes[num].loc + "/assignment?page=" + pag, function(resp) {
var data = jQuery(resp).find("table.list.hover_glow tbody").children("tr:not(.head)").toArray();
allData = allData.concat(data);
if (total == null) total = jQuery(resp).find(".padtb").children(".pagination.right").children("ul").children("li").length / 2;
- if (num < total) { call(num + 1) } else { step2(allData) }
+ if (pag < total) { call(pag + 1) } else { step2(allData) }
});
}
call(1)