X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/742be9024255462893df993bfd11d6c51b41280f..1606d4db6e8222f87b335c317ddbf24a745e8c37:/wolnelektury/static/js/catalogue.js?ds=inline diff --git a/wolnelektury/static/js/catalogue.js b/wolnelektury/static/js/catalogue.js index 3057e152a..cb31654c9 100644 --- a/wolnelektury/static/js/catalogue.js +++ b/wolnelektury/static/js/catalogue.js @@ -451,6 +451,7 @@ function serverTime() { $(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); @@ -461,5 +462,29 @@ function serverTime() { $(this).data('drag', false); }); + $('.widget-code').focus( + function(){ + $(this).animate({rows: '11'}, 100, function(){ + this.select(); + $(this).click(function(){ + this.select(); + }); + }) + + } + ).blur( + function(){ + $(this).animate({rows: '1'}, 300, function(){ + $(this).unbind('click'); + }) + } + ); + + $('.book-list-index').click(function(){ + $('.book-list-show-index').hide('slow'); + $(this).parent().next('ul').toggle('slow'); + return false; + }); + }); })(jQuery)