From d8e2d8c950c5624bf26a19a7870cbd7ba83ce82d Mon Sep 17 00:00:00 2001 From: Shanavas M Date: Mon, 20 Aug 2018 19:59:04 +0530 Subject: [PATCH] Use eventlistener instead of onload --- mainapp/templates/mainapp/request_list.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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()