Skip to content

Commit

Permalink
Merge branch 'MDL-58835_master-fix2' of https://github.com/dmonllao/m…
Browse files Browse the repository at this point in the history
  • Loading branch information
danpoltawski committed Sep 14, 2017
2 parents a2bcf80 + 3f6933d commit f125ce6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion report/insights/amd/build/actions.min.js

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

6 changes: 5 additions & 1 deletion report/insights/amd/src/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,11 @@ define(['jquery', 'core/ajax', 'core/notification'], function($, Ajax, Notificat

// Move back if no remaining predictions.
if ($('.insights-list tr').length < 2) {
window.history.back();
if (document.referrer) {
window.location.assign(document.referrer);
} else {
window.location.reload(true);
}
}
}).fail(Notification.exception);
}
Expand Down

0 comments on commit f125ce6

Please sign in to comment.