Try returning false at the end of the emailShare function, notifying the browser not to follow the url after loading the modal. Your modal is loading, but then the browser redirects to the url specified in the offending link.
On Monday, April 9, 2012 2:29:18 PM UTC-7, Bill Lazar wrote: > > All, > > Have you implemented TB in a Backbone.js app yet and specifically > bootstrap-modal? I'm having a really tough time figuring out where/how to > show the modal (from a user click). > > The odd thing is the modal shows but immediately the clicked URL loads. > That is, the link I have for the user is like this: > > <a href="#emailShareModal" id="emailShareBtn" class="btn_emailShare" > data-toggle="modal" data-backdrop="true" data-keyboard="true"><img > src="LargeIcons-Email.png" alt=""></a> > > After clicking the browser URL shows as > http://example-acme.localhost:9300/emailShareModal. This seems strange > since the original href is #emailShareModal (that is, a relative path) and > selecting copy URL from the browser context menu shows the link on the page > has an href of: > > > http://example-acme.localhost:9300/campaigns/552/reviews/86459#emailShareModal > > View class in a gist: https://gist.github.com/2346669 > > Note that I only know the modal loads and is briefly visible is from > stepping through code with Firebug, otherwise the changes happen so fast > the modal isn't seen. > > Thanks, > Bill > >
