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
BUG: jQuery loss (can't use jQuery after import image_cropping.js) #69
Comments
Because "jQuery.noConflict(true)" overwrites $ and jQuery with previous version. View details in: http://sundropsoftware.com/how-to-use-jquery-noconflict-the-right-way/ |
There is an older issue (#19) concerning the same subject. All we do is to remove the jQuery that we included to make the widget work. The only potential problem I can see is the recently added option to make Image Cropping NOT include its own jQuery version: https://github.com/jonasundderwolf/django-image-cropping#custom-jquery |
Yes, i tried to configure the IMAGE_CROPPING_JQUERY_URL to None but neither worked. Additionally, i tried to configure the IMAGE_CROPPING_JQUERY_URL with a valid url jQuery and load jQuery after but neither worked. |
I can see the issue in the first case and we'll look into it. Concerning the second case: As I said, this is the intended behaviour. |
I'm having the same issue. |
@RaphaelKimmig Yes, I can see the issue. However I start thinking that the None-Option was maybe not best idea in the first place and we should simply restore the old behavior. |
@RaphaelKimmig Can you check if this solves your problem: https://github.com/jonasundderwolf/django-image-cropping/tree/issue69/jquery_url? |
@anrie Indeed it does. Thank you very much :-) On another note - when installing django-image-cropping directly from git (via |
Okay, there is a new release (1.0.2) that should solve this issue. @RaphaelKimmig The static files should now be included if you install directly from Github. |
@anrie Awesome, thank you! |
Can't use jQuery after: "jQuery.noConflict(true)(function() {image_cropping.init();}); "
in: https://github.com/jonasundderwolf/django-image-cropping/blob/master/image_cropping/static/image_cropping/image_cropping.js
The text was updated successfully, but these errors were encountered: