-
Notifications
You must be signed in to change notification settings - Fork 575
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Show request details in popup modal #750
base: master
Are you sure you want to change the base?
Conversation
5295862
to
0c29808
Compare
const iDate = 5 | ||
const iGps = 6 | ||
const iSummary = 7 | ||
|
||
window.onload = function() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since we use jQuery, change this window.onload to
$(window).on('load', function(){
})
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks,
But we can't do that because jquery script is loaded at the bottom of the page. using $
would through an error
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah okay..
Then changing it to window.addEventListener
would be good enough. I saw in other places window.onload is been used. It will cause the onload
overridden from other places.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
chaged to window.addEventListener
, though overriding won't be an issue as only one template is loaded at a time
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LTGM. It would be better if you place CSS and JS in their respective files in static
.
@shanavas786 please resolve conflicts as well. |
d8e2d8c
to
280d348
Compare
done |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please squash your commits. Rest LGTM.
Use eventlistener instead of onload
b795c6b
to
7836017
Compare
Issue Reference
This PR addresses the Issue : Closes #626
Summarize
By handling request detail in request list page itself, we can reduce hits to request details api