Created
November 27, 2013 10:07
-
-
Save jlcampana/7673387 to your computer and use it in GitHub Desktop.
Ocultar div si se pulsó fuera
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
//Hacemos dismiss si el menú está visible y se pulsó fuera | |
$(document).mouseup(function (e) | |
{ | |
var container = null; | |
if($('#menu_settings').is(":visible")) | |
{ | |
container = $('#menu_settings'); | |
} | |
if (container!=null && !container.is(e.target)) | |
{ | |
container.hide(); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment