-
Notifications
You must be signed in to change notification settings - Fork 583
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
fix: Some id were localized in the templates #1350
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1350 +/- ##
=======================================
Coverage 72.39% 72.39%
=======================================
Files 72 72
Lines 3268 3268
Branches 532 532
=======================================
Hits 2366 2366
Misses 735 735
Partials 167 167 |
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.
Looks good to me. Let's get this merged and released 🚢 🚀
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.
In order to solve issue #1335, I propose to use string literal within JavaScript code instead of integer literal. In case if PK value exceeds JavaScript Number.MAX_SAFE_INTEGER
value, integer literal will be rounded, thus value passed to the target function will be different from the actual PK value.
filer/templates/admin/filer/folder/directory_thumbnail_list.html
Outdated
Show resolved
Hide resolved
filer/templates/admin/filer/folder/directory_thumbnail_list.html
Outdated
Show resolved
Hide resolved
Co-authored-by: ivarsg <[email protected]>
Co-authored-by: ivarsg <[email protected]>
Co-authored-by: ivarsg <[email protected]>
Co-authored-by: ivarsg <[email protected]>
@ivarsg Wow, you really push the database! |
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.
Looks good to me and cleans up the JS nicely 👍
Description
This fixes issue #1335.
A similar change has been merged into django cms core (django-cms/django-cms#7188)
Related resources
Checklist
master
Slack to find a “pr review buddy” who is going to review my pull request.