X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/6ed6a028456f3f20ebbc91e88014416e08817239..42f52375b9d61ca9276f43205fc4d4d56243d3b8:/wolnelektury/media/js/catalogue.js?ds=sidebyside diff --git a/wolnelektury/media/js/catalogue.js b/wolnelektury/media/js/catalogue.js index 857849d98..f86788be7 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,14 @@ }); } }); + + $('a.remove-from-shelf').click(function(event) { + event.preventDefault(); + link = $(this); + $.post(link.attr('href'), function(data, textStatus) { + link.parent().remove(); + }); + }); }); })(jQuery) \ No newline at end of file