X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/6ed6a028456f3f20ebbc91e88014416e08817239..6dc2540f663c92368314d610d161f3044fcc845c:/wolnelektury/media/js/catalogue.js?ds=inline 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