Giter Site home page Giter Site logo

Comments (6)

neerajsingh0101 avatar neerajsingh0101 commented on June 4, 2024

Can you elaborate on the issue you are running into?

from jquery-ujs.

onewland avatar onewland commented on June 4, 2024

The 'if' statement on line 72 determines which code jQuery uses to attach itself to the data-confirm attributes to display the confirm() based dialog. It does not include a version check for jQuery 1.4.3, which needs to use the new style of attaching to the link. Because it doesn't check for 1.4.3 specifically, it drops into the old style of handling data-confirm which doesn't work for jQuery 1.4.3. Since it doesn't attach, the confirm doesn't get displayed and the confirmation dialog never pops up, and the click always goes through.

from jquery-ujs.

neerajsingh0101 avatar neerajsingh0101 commented on June 4, 2024

The job of if condition is to check where to attach the confirmation. In jquery 1.4.3 I am attaching it at body and in other versions I am attaching it at document level.

Can you create an application and put it on github so that I could see the problem?

Also what browse you are using and what os you are using?

Thanks

from jquery-ujs.

neerajsingh0101 avatar neerajsingh0101 commented on June 4, 2024

master has changed and it does not have if condition anymore.

If you want something to be pushed then please create a new pull request.

Thank you.

from jquery-ujs.

onewland avatar onewland commented on June 4, 2024

Yeah, sorry about my lack of attention; been quite busy lately.

If the issue still exists, I'll be more useful in my next submission.

from jquery-ujs.

neerajsingh0101 avatar neerajsingh0101 commented on June 4, 2024

No need to be sorry.

Thanks for the pull request.

from jquery-ujs.

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.