Created
April 8, 2016 12:48
-
-
Save Kcko/a172b0d3ab7b29095b83b4f0ce7b4746 to your computer and use it in GitHub Desktop.
Close on document, but not on this element.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $(document).on('click', function(e){ | |
| if ($(e.target).closest('.user-sign-in-form').length === 0) | |
| { | |
| $('.user-sign-in-form').fadeToggle(); | |
| } | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment