X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/2711c8990f3816ea86751cb761668bec93302ab8..cda2ae88878c218d2208398cdb054b6c9baebd47:/wolnelektury/media/js/catalogue.js?ds=sidebyside diff --git a/wolnelektury/media/js/catalogue.js b/wolnelektury/media/js/catalogue.js index 1d631e3cc..599bcf441 100644 --- a/wolnelektury/media/js/catalogue.js +++ b/wolnelektury/media/js/catalogue.js @@ -35,6 +35,15 @@ function() { $(this).css({background: '#FFF'}); } ); + $('.show-all-tags').click(function() { + $(this).parent().parent().fadeOut(function() { + $(this).next().fadeIn(); + }); + return false; + }); + + + $('#registration-form').ajaxForm({ dataType: 'json', beforeSubmit: function() { @@ -89,6 +98,14 @@ } }); + $('ul.shelf-list li').hover(function() { + $(this).css({background: '#EEE', cursor: 'pointer'}); + }, function() { + $(this).css({background: 'transparent'}); + }).click(function() { + location.href = $('a.visit-shelf', this).attr('href'); + }); + $('.delete-shelf').click(function() { var link = $(this); var shelf_name = $('.visit-shelf', link.parent()).text();