GithubHelp home page GithubHelp logo

Comments (10)

jschr avatar jschr commented on August 23, 2024

I have a bit of experience with Backbone and bootstrap but that was before I wrote this modal plugin unfortunately. I can't think of anything off the top of my head that would cause this besides maybe not using Bootstrap 2.1.0+?

If you have a test page I'd be happy to take a look at it to try and see what's going on.

from bootstrap-modal.

gdiazlo avatar gdiazlo commented on August 23, 2024

I've just removed bootstrap-modal.js leaving bootstrap-manager.js in place and it started to work, on iphone and desktop. I'm using bootstrap 2.2.0 and backbone 0.9.2.

I can send you the page privately, as it is in early devel stages.

from bootstrap-modal.

jschr avatar jschr commented on August 23, 2024

hmm.. Do you happen to be using an older version of the plugin? It's my intention that you should be able to just include the files on top of bootstrap and have it just work. I also suspect removing the modal class definition from the bootstrap library would also resolve the problem but like I said, I don't want that to be a requirement.

If you have a private url or page you would like to send me I'd be glad to take a look so let me know.

from bootstrap-modal.

gdiazlo avatar gdiazlo commented on August 23, 2024

I uploaded a version to google with all the js included:

http://somewhere

you will need a google account to log in.

from bootstrap-modal.

jschr avatar jschr commented on August 23, 2024

According to the source you are using Bootstrap 2.1.1 which is why you are seeing the problem. In version 2.2.0 they changed all the events from being on body to document so right now you are running into some weird issues because modals are being launched twice. If you need to use BS 2.1.1 you can fix the issue with this:

$('body').off('.modal')

from bootstrap-modal.

gdiazlo avatar gdiazlo commented on August 23, 2024

Damn bootstrap customize page, i just downloaded bootstrap from its site, but the customize page gives you something different !! :( thanks a lot!

from bootstrap-modal.

jschr avatar jschr commented on August 23, 2024

Glad I could help

from bootstrap-modal.

gdiazlo avatar gdiazlo commented on August 23, 2024

Seems there is another issue with backbone. Events defined in collections doesn't fire properly when inside a modal. Removing bootstrap-modal.js make it to work.

I use a single button to submit a form via a backbone action and to dismiss the modal. The modal is dismiss appropaitely, but the backbone action does not execute. I'll try to dig more.

from bootstrap-modal.

gdiazlo avatar gdiazlo commented on August 23, 2024

It could be related to the use of triggerHandler instead of trigger?

from bootstrap-modal.

jschr avatar jschr commented on August 23, 2024

#37

from bootstrap-modal.

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.