diff --git a/ref-test/app/admin/static/js/script.js b/ref-test/app/admin/static/js/script.js index 3b45528..caaee59 100644 --- a/ref-test/app/admin/static/js/script.js +++ b/ref-test/app/admin/static/js/script.js @@ -242,6 +242,10 @@ $('.adjustment-delete').click(function(event){ event.preventDefault() }) - - event.preventDefault(); -}); \ No newline at end of file + +// Detailed Results view questions +$('.view-full-questions').click(function(event) { + var dataset = $(this).data('dataset') + window.open(`/admin/view/${dataset}`, '_blank') + event.preventDefault() +}) \ No newline at end of file diff --git a/ref-test/app/admin/templates/admin/result-detail.html b/ref-test/app/admin/templates/admin/result-detail.html index 4c60d80..6a8bd6b 100644 --- a/ref-test/app/admin/templates/admin/result-detail.html +++ b/ref-test/app/admin/templates/admin/result-detail.html @@ -114,7 +114,7 @@ {{ scores.scored }}
- {{ question }} + {{ question|int + 1 }} | {{ answers[question|int][answer|int] }} |