npu
npu copied to clipboard
Closing modals when clicking outside them
This is a minor feature. It closes the topmost popup when the user clicks outside of it.
This is my first contribution here, so please check if I did everything right! I used DOM methods instead of jQuery, I don't know if that's a problem.
(This is my second pull request on this feature, I screwed up the first one)