X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/4bec460435e74e85924894c7f4065d1468baba8b..64070cbb6224362b6bd5de6b2dfe67f80202272b:/wolnelektury/static/js/catalogue.js diff --git a/wolnelektury/static/js/catalogue.js b/wolnelektury/static/js/catalogue.js index cb31654c9..9fd03d34b 100644 --- a/wolnelektury/static/js/catalogue.js +++ b/wolnelektury/static/js/catalogue.js @@ -447,20 +447,7 @@ function serverTime() { return false; }); - $('marquee').marquee().mouseover(function () { - $(this).trigger('stop'); - }).mouseout(function () { - $(this).trigger('start'); - $(this).data('drag', false); - }).mousemove(function (event) { - if ($(this).data('drag') == true) { - this.scrollLeft = $(this).data('scrollX') + ($(this).data('x') - event.clientX); - } - }).mousedown(function (event) { - $(this).data('drag', true).data('x', event.clientX).data('scrollX', this.scrollLeft); - }).mouseup(function () { - $(this).data('drag', false); - }); + $('.sponsor-logos').cycle({timeout: 3000}); $('.widget-code').focus( function(){ @@ -482,7 +469,9 @@ function serverTime() { $('.book-list-index').click(function(){ $('.book-list-show-index').hide('slow'); - $(this).parent().next('ul').toggle('slow'); + if($(this).parent().next('ul:not(:hidden)').length == 0){ + $(this).parent().next('ul').toggle('slow'); + } return false; });