Added importing localsettings.py from settings.py. It can override some settings.
[wolnelektury.git] / wolnelektury / media / js / catalogue.js
index 857849d..f86788b 100644 (file)
             return false;
         });
         
+        $('.hide-all-tags').click(function() {
+           $(this).parent().parent().fadeOut(function() {
+               $(this).prev().fadeIn();
+           });
+           return false; 
+        });
+        
         $('#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();
+            });
+        });
 
     });
 })(jQuery)
\ No newline at end of file