diff --git a/scp/js/tips.js b/scp/js/tips.js index 7a299ad86ab9f00f3caa7e6872902053660f510e..9fdd2261701abc3c60012dd54a6ebe10a6b548fc 100644 --- a/scp/js/tips.js +++ b/scp/js/tips.js @@ -213,4 +213,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(); + } + }); });