Skip to content

Commit

Permalink
Use eventlistener instead of onload
Browse files Browse the repository at this point in the history
  • Loading branch information
shanavas786 committed Aug 23, 2018
1 parent deb53cd commit 280d348
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mainapp/templates/mainapp/request_list.html
Original file line number Diff line number Diff line change
Expand Up @@ -197,10 +197,10 @@ <h3>Summary</h3>
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()
Expand Down

0 comments on commit 280d348

Please sign in to comment.