From 0790c3397ee2d39893eb789c2c8fe4d1a7f201c0 Mon Sep 17 00:00:00 2001
From: Raphael Sofaer <raphael@joindiaspora.com>
Date: Thu, 9 Jun 2011 16:02:01 -0700
Subject: [PATCH] Delete some useless JS

---
 app/views/people/_profile_sidebar.html.haml | 12 ------------
 1 file changed, 12 deletions(-)

diff --git a/app/views/people/_profile_sidebar.html.haml b/app/views/people/_profile_sidebar.html.haml
index d6f27d5945..b021e0210c 100644
--- a/app/views/people/_profile_sidebar.html.haml
+++ b/app/views/people/_profile_sidebar.html.haml
@@ -2,18 +2,6 @@
 -#   licensed under the Affero General Public License version 3 or later.  See
 -#   the COPYRIGHT file.
 
-- content_for :head do
-  :javascript
-    $(document).ready(function(){
-      $('.delete').bind('ajax:success', function() {
-        $(this).closest('li').fadeOut(200);
-      });
-      $('.delete').bind('ajax:failure', function() {
-        alert("#{t('status_messages.destroy.failure')}");
-      });
-    });
-
-
 #profile
   .profile_photo
     = person_image_link(person, :size => :thumb_large, :to => :photos)
-- 
GitLab