X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/8fefd8bdaca07a3f5607de79c081dc0f7876fbc7..24e09bc235b3ff6e659e901dfbdbcc23e6e14ba7:/wolnelektury/static/js/base.js?ds=inline diff --git a/wolnelektury/static/js/base.js b/wolnelektury/static/js/base.js index 8225a1f6c..33026ac04 100755 --- a/wolnelektury/static/js/base.js +++ b/wolnelektury/static/js/base.js @@ -73,7 +73,21 @@ } }); }); + $('body').click(function(e) { + if ($current == null) return; + var p = $(e.target); + while (p.length) { + if (p == $current) + return; + if (p.hasClass('hidden-box-trigger')) + return; + p = p.parent(); + } + $current.hide('fast'); + $current = null; + }); })(); + @@ -87,7 +101,7 @@ $('.open-player').click(function(event) { event.preventDefault(); window.open($(this).attr('href'), 'player', - 'width=420, height=500' + 'width=422, height=500' ); }); @@ -100,6 +114,8 @@ $('.open-player').click(function(event) { return false; }); + $(function(){ + $("#search").search();}); }); })(jQuery)