Live data from Hacker News

A Better Twitter Bootstrap Modal

github.com

51–60 of 73 posts

Re: A Better Twitter Bootstrap Modal

#53
post #50
post #49

Earlier quoted context omitted.

Not without heavy js code

Well, I actually submitted a pull-request almost a year ago but it was rejected for "complexity"... I didn't understand that decision back then and I don't understand it today. The patch weighs in at about 100 lines which doesn't seem heavy to me. Especially when you consider that without the patch the bootstrap-"modal" is not a modal ... Anyway, here's the fixed bootstrap-modal.js for the version that was current ba…

You might want to change the language/syntax highlighting of that gist. That apostrophe on line 120...

Re: A Better Twitter Bootstrap Modal

#56
This is a nice modal, but I'd much rather never have a modal ever. The only time a modal should appear is if a critical error occurred that the user must know about immediately. For most cases where modals tend to get used, like on iOS "please rate us", or "we want your contact information now", I don't think it is appropriate at all.

Re: A Better Twitter Bootstrap Modal

#58

This is a nice modal, but I'd much rather never have a modal ever. The only time a modal should appear is if a critical error occurred that the user must know about immediately. For most cases where modals tend to get used, like on iOS "please rate us", or "we want your contact information now", I don't think it is appropriate at all.

Obviously auto-popup modals are bad, but modals are great for signup and login forms.

Re: A Better Twitter Bootstrap Modal

#60

This is a nice modal, but I'd much rather never have a modal ever. The only time a modal should appear is if a critical error occurred that the user must know about immediately. For most cases where modals tend to get used, like on iOS "please rate us", or "we want your contact information now", I don't think it is appropriate at all.

Modal may not be great on public websites but they are essential on web apps.

And not everything is mobile web.

Post reply on HN