Skip to content
Snippets Groups Projects
Commit 90eddf8b authored by Peter Rotich's avatar Peter Rotich Committed by Jared Hancock
Browse files

Close tip popup on click outside the tip box.

parent 21b56869
Branches
Tags
No related merge requests found
......@@ -190,4 +190,12 @@ jQuery(function() {
e.preventDefault();
$(this).parent().parent().remove();
});
$(document).live('mouseup', function (e) {
var container = $('.tip_box');
if (!container.is(e.target)
&& container.has(e.target).length === 0) {
container.remove();
}
});
});
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment