Added ordering to book children relation.
[wolnelektury.git] / wolnelektury / media / js / catalogue.js
index c9d5457..187cfde 100644 (file)
             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() {
                 $('.delete-shelf').click(function() {
                     var link = $(this);
                     var shelf_name = $('.visit-shelf', link.parent()).text();
-                    console.log(shelf_name);
                     if (confirm('Czy na pewno usunąć półkę ' + shelf_name + '?')) {
                         $.post(link.attr('href'), function(data, textStatus) {
                             link.parent().remove();