X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/6ed6a028456f3f20ebbc91e88014416e08817239..680b57a0f6534c0de5c1699933eefe334b59a8c0:/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