jyoungblood / smoke.js

framework-agnostic styled alert system for javascript
http://smoke.js.org/
930 stars 107 forks source link

diable clicking on background to close smoke.confirm dialog #28

Closed eamonnfaherty closed 12 years ago

eamonnfaherty commented 12 years ago

I have a smoke.confirm dialog with ok and cancel buttons. I would like to force users to click on ok or cancel buttons only - not allow them to click on the background or anywhere else on the page.

Is this possible?

jyoungblood commented 12 years ago

ooohhh yeah i hadn't thought of this use case. there's currently not a preference to disable that, but commenting out 130-141 will disable that functionality.

eamonnfaherty commented 12 years ago

Thanks,

I will fork and submit a pull request. Is that okay?

jyoungblood commented 12 years ago

cool. go for it :)