Use *data-target*="#emailShareModal" instead of href.
On Tuesday, 10 April 2012 02:59:18 UTC+5:30, 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 > >
