jyoungblood / smoke.js

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

Add smoke.prompt() #3

Closed bpierre closed 13 years ago

bpierre commented 13 years ago

https://developer.mozilla.org/en/DOM/window.prompt

jyoungblood commented 13 years ago

this was the next big thing i had planned (and it's mostly done already, just need to finish a couple of remaining issues with it). might be up tonight or tomorrow?

jyoungblood commented 13 years ago

added. has to be used like smoke.confirm() (i put an example on the demo site).

thanks for the request. let me know if you have any issues with it.

bpierre commented 13 years ago

Nice :-)

bpierre commented 13 years ago

I suggest you to add an autofocus attribute on the input, and it will be near from perfect :-)

jyoungblood commented 13 years ago

that's weird. i added that functionality last night (well, i was focusing w/ js), but i guess it wasn't working in firefox. should be working everywhere now.