aboutsummaryrefslogtreecommitdiffstats
path: root/t/app/controller
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2016-10-21 19:59:05 +0100
committerMatthew Somerville <matthew-github@dracos.co.uk>2016-10-21 20:21:14 +0100
commite12e5a7685b4ae5dcfeaf931adde2dbb91ef745f (patch)
tree733f0a5c2d31a79addc6f03eafb2a581980099dc /t/app/controller
parent1ae102a9f4ebddb4a94b9fd8094ec47c57f7ad00 (diff)
Store and use initial URL to fix JavaScript bugs.
If you were on a body page, selected a report, then another report, the "Back to all reports" link then had an incorrect URL. Also, going "Back to all reports" after one report would fetch an incorrect Ajax query of reports to show (as the URL had not yet been updated). Both of these are fixed by storing the URL on page load, and using that for the "Back to all reports" link and the URL used by the Ajax call. There is still an issue with the URL shown if you filter, then select a report, then click "Back to all reports", but the contents are okay.
Diffstat (limited to 't/app/controller')
0 files changed, 0 insertions, 0 deletions