From 30676d35ab86d870562c276ca53933a651dbe78b Mon Sep 17 00:00:00 2001 From: Preston Doman Date: Sat, 16 Feb 2019 18:42:19 -0800 Subject: [PATCH] Add function to refresh page on new report close --- front/static/js/viewHistory.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/front/static/js/viewHistory.js b/front/static/js/viewHistory.js index fbbdf9f..b19c429 100644 --- a/front/static/js/viewHistory.js +++ b/front/static/js/viewHistory.js @@ -475,3 +475,10 @@ document.addEventListener("submit", function(event) { makeAjaxRequest("PUT", url, alertCallback, null, formData); } }); + +// Jquery is required to handle this modal event +$(document).ready(function(){ + $("#newReportModal").on('hidden.bs.modal', function() { + location.reload(true); + }); +});