GarethElms / BackboneJSModalView

I needed to use a Backbone.js view in a modal dialog. So I wrote a view base class that gives you a showModal() function
http://www.garethelms.org/2011/12/backbone-js-modal-dialog/
MIT License
63 stars 36 forks source link

In mobile Safari backgroundClickClosesModal does not work #2

Closed stpn closed 11 years ago

stpn commented 11 years ago

Hi, worked great for desktop browsers, but can't get backgroundClickClosesModal functionality in mobile Safari.. Is it just me or is there a catch of some sort?

GarethElms commented 11 years ago

I'll look into this tonight and fix it. Either the click event isn't firing or event.target.id is not the same on mobile safari as desktop safari.

GarethElms commented 11 years ago

I've added a fix for this thanks for reporting it

GarethElms commented 11 years ago

ps: can you let me know if it solves your problem. Works on my iPod Touch 3rd gen

stpn commented 11 years ago

works on iPhone 4 & iOS simulators. Thanks!