diff --git a/mainapp/templates/mainapp/request_list.html b/mainapp/templates/mainapp/request_list.html
index dd9ca1a7f..31094849f 100644
--- a/mainapp/templates/mainapp/request_list.html
+++ b/mainapp/templates/mainapp/request_list.html
@@ -187,10 +187,10 @@
Summary
const iGps = 6
const iSummary = 7
- window.onload = function() {
+ window.addEventListener("load", function() {
$("input.search").keyup(search);
$(".show-details").click(showDetails);
- }
+ })
function showDetails(evt) {
var tds = $(evt.target).parent().siblings()