Comments (10)
Hi,
What you mean when you say two / three images are uploaded ?
from comurimagebundle.
This is what happens, and I just add 3 images to the gallery, and only 3 images were cropped.
from comurimagebundle.
I'm aware that only one image can be uploaded at the time to be cropped later. (Please, correct me if I'm wrong)
from comurimagebundle.
Hi @crustafari
Yes i confirm, for now it can upload one image at once.
Can you look at inspector and tell me if it sends twice or if it's a controller issue pls ?
from comurimagebundle.
@comur I've looked at inspector and these are the results.
This time only one image was uploaded.
It seems to me something is triggering cropImageAction twice after uploading.
Please let me know if you need anything else!
from comurimagebundle.
There are 2 crop actions means that there is a problem javascript side, maybe the modal is not destroyed like it should.
I will take a look ASAP. Can you check if there is any JS error in inspector pls ?
from comurimagebundle.
from comurimagebundle.
I downgraded to jQuery 1.10.2 and JS errors disappear, but cropping action gets triggered on.
from comurimagebundle.
@comur I finally found the issue!!!!
It's in croppable_image_modal.html.twig line 93 I've replaced
<script> $('#image_upload_modal').on({ 'hide': destroyImageManager }); </script>to:
<script> $('#image_upload_modal').on({ 'hidden.bs.modal': destroyImageManager }); </script>It's because my Bootstrap version. Please check
http://stackoverflow.com/questions/12319171/how-to-handle-the-modal-closing-event-in-twitter-bootstrap
Thank you so much for your help.
from comurimagebundle.
Hi thanks for the trick, i will change it
from comurimagebundle.
Related Issues (20)
- Remove dependency on dev/master of jms/translation-bundle HOT 1
- JSON Parse Symfony 3 HOT 1
- Does the bundle support ajax? drag and drop feature?
- Unexpected token U in JSON at position 66 HOT 1
- data.result.image_upload_file is undefined in comur.imagelibrary.js:67:1 HOT 1
- How to upload a simple Image widget with ComurImageBundle? HOT 1
- unable to upload on php7.1 due to notice HOT 3
- Support of Symfony 4.0 HOT 3
- how upload image to database any help please!! HOT 1
- Nothing happens when selecting an image HOT 1
- Can we have a new release? HOT 1
- Add alt text for image
- Symfony flex support HOT 3
- Support Symfony 5.x HOT 13
- Remove dependency on jms/translation-bundle
- Remove dependency on deprecated module twig/extensions
- composer command not installing ComurImageBundle HOT 1
- Any plans to keep updating?
- conflict with requirements symfony form (composer) HOT 1
- Amélioration du module HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from comurimagebundle.