-
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
thumbnail behavior in widget broken - does not disappear on clear #1505
Comments
I have somewhat similar problems. Needed to override admin_file.html and removed detail=True. django==4.2.16 |
@gradel |
I have added an image, saved the model and can still remove the image. I am unable to view this image. |
@mrbazzan The issue is not about saving/removing the image from its model. Its just about the javascript driven behavior of the editing interface before saving. As soon as the remove button is clicked the thumbnail used to disappear immediately. And as soon as you chose another image a thumbnail of it used to be displayed immediately before any saving of the model. Image is here too: |
Now I understand the problem. Thanks. 👍🏿
|
This issue can be closed as #1511 fixed it too, right? |
@mrbazzan: Yes! |
Possible bug introduced here:
f919cbf#diff-b4f795d97b769d1875bca80a02e74dd46438e9ebd2a39a818d3999ad8fea0ca3L29
This leads to
detail
becoming True infile_icon
templatetag and then infile_icon_context
andget_aspect_ratio_and_download_url
, where thereforedownload_url
gets added to the context what in turn infile_icon.html
lets the img element get selected which is lacking thethumbnail_img
class. Thefiler_clear
functionin
addons/widget.js
thus can not find the img:var thumbnail = container.find('.thumbnail_img');
.The text was updated successfully, but these errors were encountered: