Giter Club home page Giter Club logo

Comments (10)

comur avatar comur commented on July 19, 2024

Hi,

What you mean when you say two / three images are uploaded ?

from comurimagebundle.

carlosequiz avatar carlosequiz commented on July 19, 2024

This is what happens, and I just add 3 images to the gallery, and only 3 images were cropped.
captura de pantalla 2014-11-28 a la s 12 08 22

from comurimagebundle.

carlosequiz avatar carlosequiz commented on July 19, 2024

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.

comur avatar comur commented on July 19, 2024

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.

carlosequiz avatar carlosequiz commented on July 19, 2024

@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.

gallery
inspector results
network
upload headers

Please let me know if you need anything else!

from comurimagebundle.

comur avatar comur commented on July 19, 2024

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.

carlosequiz avatar carlosequiz commented on July 19, 2024

inspector

from comurimagebundle.

carlosequiz avatar carlosequiz commented on July 19, 2024

I downgraded to jQuery 1.10.2 and JS errors disappear, but cropping action gets triggered on.

from comurimagebundle.

carlosequiz avatar carlosequiz commented on July 19, 2024

@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.

comur avatar comur commented on July 19, 2024

Hi thanks for the trick, i will change it

from comurimagebundle.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.