0

I'm hoping to use Fancybox2 to display a modal edit form for a rails 3.2 application, but if the end user clicks anywhere outside the modal window then fancybox closes.

Is there a way to disable that so the modal will not close (throwing away their edits) if they accidentally click on the underlying web page?

If not, can anyone suggest a simple rails 3.2 gem to implement modal popup form editing?

jpw
  • 18,697
  • 25
  • 111
  • 187
  • 1
    maybe http://stackoverflow.com/a/8404587/1055987 – JFK Apr 08 '14 at 18:46
  • bingo jfk - worked great - if you add as an answer I can accept it. – jpw Apr 08 '14 at 19:52
  • You could just up vote my [referred](http://stackoverflow.com/a/8404587/1055987) answer instead and we vote to close this one as duplicated ;) – JFK Apr 08 '14 at 20:00
  • 1
    possible duplicate of [jquery fancybox 2.0.3 - prevent close on click outside of fancybox](http://stackoverflow.com/questions/8400433/jquery-fancybox-2-0-3-prevent-close-on-click-outside-of-fancybox) – JFK Apr 08 '14 at 21:21

0 Answers0