Added importing links from wikipedia to import_links.py script.
[wolnelektury.git] / wolnelektury / media / js / catalogue.js
index 857849d..1dbd1b9 100644 (file)
             return false;
         });
         
             return false;
         });
         
+        $('.hide-all-tags').click(function() {
+           $(this).parent().parent().fadeOut(function() {
+               $(this).prev().fadeIn();
+           });
+           return false; 
+        });
+        
         $('#registration-form').ajaxForm({
             dataType: 'json',
             beforeSubmit: function() {
         $('#registration-form').ajaxForm({
             dataType: 'json',
             beforeSubmit: function() {
                 });
             }
         });
                 });
             }
         });
-
+        
+        $('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
     });
 })(jQuery)
\ No newline at end of file