Add function to refresh page on new report close
This commit is contained in:
		
							parent
							
								
									e1873fe4ae
								
							
						
					
					
						commit
						30676d35ab
					
				
					 1 changed files with 7 additions and 0 deletions
				
			
		|  | @ -475,3 +475,10 @@ document.addEventListener("submit", function(event) { | ||||||
|         makeAjaxRequest("PUT", url, alertCallback, null, formData); |         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); | ||||||
|  |     }); | ||||||
|  | }); | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Preston Doman
						Preston Doman