Fixing the dismiss when clicking outside of a modal bootstrap window.
Merge pull request #681 from RobertDenis/popup-click-outside-fix

Fixing the dismiss when clicking outside of a modal bootstrap window.