Skip to content

Commit

Permalink
Fixed URL router logic.
Browse files Browse the repository at this point in the history
  • Loading branch information
emeryberger committed Dec 13, 2017
1 parent 2a7c57f commit f1f1e8b
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 18 deletions.
8 changes: 6 additions & 2 deletions csrankings.js
Original file line number Diff line number Diff line change
Expand Up @@ -943,9 +943,13 @@ var CSRankings = /** @class */ (function () {
var s = this.buildOutputString(numAreas, deptCounts, univtext);
/* Finally done. Redraw! */
jQuery("#success").html(s);
if (update) {
this.urlUpdate();
if (!update) {
this.navigoRouter.pause();
}
else {
this.navigoRouter.resume();
}
this.urlUpdate();
return false;
};
/* Turn the chart display on or off. */
Expand Down
28 changes: 14 additions & 14 deletions csrankings.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 5 additions & 2 deletions csrankings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1193,9 +1193,12 @@ class CSRankings {

/* Finally done. Redraw! */
jQuery("#success").html(s);
if (update) {
this.urlUpdate();
if (!update) {
this.navigoRouter.pause();
} else {
this.navigoRouter.resume();
}
this.urlUpdate();
return false;
}

Expand Down

0 comments on commit f1f1e8b

Please sign in to comment.