X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/f17e5ab1f46f52b071f71c799dfa4c755f7c407e..73804022c58b91d618e477fd8a4a4148cefe3613:/wolnelektury/static/js/catalogue.js?ds=inline diff --git a/wolnelektury/static/js/catalogue.js b/wolnelektury/static/js/catalogue.js index cb31654c9..1eede5c90 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); - }); + $('.sponsors').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; });