ifad / data-confirm-modal

Makes Rails' link_to confirm: 'foo' build a Bootstrap Modal instead of calling the browser's confirm() API.
MIT License
271 stars 115 forks source link

Add quotes to keys to fix IE error caused by using class keyword #25

Closed jamesdempsey closed 9 years ago

jamesdempsey commented 9 years ago

bootstrap2 was producing an Expected identifier, string or number error in Internet Explorer 8.

See: http://stackoverflow.com/questions/2149762/possible-cases-for-javascript-error-expected-identifier-string-or-number

Quoting the keys here fixes the issue. class is a reserved keyword in Internet Explorer.

vjt commented 9 years ago

Thank you! Much appreciated :smiley: :beers: :heart: