From ec1cc7bbeb3f7e1b4376a93a2813acb45046b8c6 Mon Sep 17 00:00:00 2001
From: Bence Dányi <madbence@gmail.com>
Date: Mon, 18 Mar 2013 16:26:02 +0100
Subject: [PATCH] webui: remove unused code

---
 one/static/script/cloud.js              | 15 ---------------
 one/templates/box/template/summary.html |  3 ---
 2 files changed, 18 deletions(-)

diff --git a/one/static/script/cloud.js b/one/static/script/cloud.js
index f70c713..f7c35d9 100644
--- a/one/static/script/cloud.js
+++ b/one/static/script/cloud.js
@@ -574,21 +574,6 @@ $(function() {
             e.stopPropagation();
         }
     }());
-    $('#new-owner-form input[type=submit]').click(function() {
-        var neptun = $(this).prev().val();
-        $.ajax({
-            type: 'POST',
-            url: '/ajax/group/' + $(this).data('id') + '/add/',
-            data: 'neptun=' + neptun,
-            dataType: 'json',
-            success: function(data) {
-                window.location.reload();
-            }
-        }).error(function(data) {
-            //TODO: fancy modal alert
-            alert(JSON.parse(data.responseText).status);
-        })
-    });
 
     $('#group-members .remove').click(function(e) {
         e.preventDefault();
diff --git a/one/templates/box/template/summary.html b/one/templates/box/template/summary.html
index be7127b..391b1ea 100644
--- a/one/templates/box/template/summary.html
+++ b/one/templates/box/template/summary.html
@@ -54,9 +54,6 @@
     <a href="#" class="try-template" data-url="{% url new_vm_from_template template=t.id %}"  title="{% trans "Try"  %}">
         <img src="{% static "icons/control.png" %}" alt="{% trans "Start" %}"/>
     </a>
-    <!--<a href="#" title="{% trans "Edit" %}">
-        <img src="{% static "icons/pencil.png" %}" alt="{% trans "Edit" %}" />
-    </a>-->
     <a href="#" class="template-share" data-id="{{t.id}}" data-gid="{{group.id}}" title="{% trans "Share" %}">
         <img src="{% static "icons/user-share.png" %}" alt="{% trans "Share" %}" />
     </a>
--
libgit2 0.26.0