-
Notifications
You must be signed in to change notification settings - Fork 38
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
More clean up in how we load js and css files #4287
Conversation
b24d254
to
8863a2e
Compare
I didn't see any issues in my testing, seems pretty good! |
As @theskumar predicted this PR breaks file uploads in htmx dialogs. |
8863a2e
to
7c64842
Compare
3259aab
to
c982836
Compare
…n base.html. Move jQuery back to the bottom of tha page.
…k extra js in templates.
c982836
to
b0d30ac
Compare
…dded once in base.html.
if (closestFormGroup) { | ||
closestFormGroup.style.display = "none"; | ||
} | ||
}); |
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.
Do not think this part is needed anymore. Did not find a place where it had any effect. Let it be for now since we are changing so many other things.
@@ -1,26 +1,30 @@ | |||
jQuery(function ($) { | |||
// We use htmx.onLoad() so it will initilise file uploads in htmx dialogs. | |||
htmx.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.
This is a really neat function!
was using all dialogs quite a bit today and didn't see any issues jumping out at me so I think all is good unless there was something else specific you wanted me to look at @frjo |
Test Steps