X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/6ed6a028456f3f20ebbc91e88014416e08817239..915b81e54a48c31f6b9661eb01dce9d7e0b7f24d:/wolnelektury/media/js/catalogue.js diff --git a/wolnelektury/media/js/catalogue.js b/wolnelektury/media/js/catalogue.js index 857849d98..1dbd1b9c1 100644 --- a/wolnelektury/media/js/catalogue.js +++ b/wolnelektury/media/js/catalogue.js @@ -42,6 +42,13 @@ return false; }); + $('.hide-all-tags').click(function() { + $(this).parent().parent().fadeOut(function() { + $(this).prev().fadeIn(); + }); + return false; + }); + $('#registration-form').ajaxForm({ dataType: 'json', beforeSubmit: function() { @@ -193,6 +200,15 @@ }); } }); - + + $('a.remove-from-shelf').click(function(event) { + event.preventDefault(); + link = $(this); + $.post(link.attr('href'), function(data, textStatus) { + link.parent().remove(); + }); + }); + + $('#user-info').show(); }); })(jQuery) \ No newline at end of file