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 20, 2018
1 parent 0c29808 commit d8e2d8c
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 @@ -187,10 +187,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 d8e2d8c

Please sign in to comment.