From ec28178d09d7b24ad25b36fecc3eeac6941d5060 Mon Sep 17 00:00:00 2001
From: Dányi Bence <madbence@gmail.com>
Date: Wed, 20 Feb 2013 16:48:22 +0100
Subject: [PATCH] webui: remove '-button' suffix

---
 one/static/script/cloud.js              | 6 +++---
 one/templates/box/key/entry.html        | 2 +-
 one/templates/box/template/summary.html | 4 ++--
 3 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/one/static/script/cloud.js b/one/static/script/cloud.js
index 944c34a..d23b427 100644
--- a/one/static/script/cloud.js
+++ b/one/static/script/cloud.js
@@ -9,12 +9,12 @@ $(function() {
             $(this).next('.details').slideDown(700);
         }
     })
-    $('.delete-template-button').click(function(e) {
+    $('.delete-template').click(function(e) {
         e.preventDefault();
         e.stopPropagation();
         delete_template_confirm($(this).data('id'), $(this).data('name'));
     });
-    $('.delete-key-button').click(function(e) {
+    $('.delete-key').click(function(e) {
         var id = $(this).data('id');
         e.preventDefault();
         e.stopPropagation();
@@ -69,7 +69,7 @@ $(function() {
             });
         })
     });
-    $('.try-template-button').click(function(e) {
+    $('.try-template').click(function(e) {
         e.preventDefault();
         e.stopPropagation();
         new_vm($(this).data('id'));
diff --git a/one/templates/box/key/entry.html b/one/templates/box/key/entry.html
index 5761317..5aa0702 100644
--- a/one/templates/box/key/entry.html
+++ b/one/templates/box/key/entry.html
@@ -14,7 +14,7 @@
         {{key}}
     </div>
     <div class="actions">
-        <a href="#" class="remove delete-key-button" data-id="{{key.id}}">
+        <a href="#" class="remove delete-key" data-id="{{key.id}}">
             <img src="/static/icons/minus-circle.png" alt="{% trans 'Remove' %}" />
         </a>
     </div>
diff --git a/one/templates/box/template/summary.html b/one/templates/box/template/summary.html
index 1b3e90e..a49d66d 100644
--- a/one/templates/box/template/summary.html
+++ b/one/templates/box/template/summary.html
@@ -37,7 +37,7 @@
 
 {% block actions %}
     {% if t.state == 'READY' %}
-    <a href="#" class="try-template-button" data-id="{{t.id}}" title="{% trans "Try"  %}">
+    <a href="#" class="try-template" data-id="{{t.id}}" title="{% trans "Try"  %}">
         <img src="/static/icons/control.png" alt="{% trans "Start" %}"/>
     </a>
     <a href="#" title="{% trans "Edit" %}">
@@ -47,7 +47,7 @@
         <img src="/static/icons/user-share.png" alt="{% trans "Share" %}" />
     </a>
     {% endif %}
-    <a href="#" class="delete-template-button" data-id="{{ t.id }}" data-name="{{ t.name }}" title="{% trans "Remove" %}">
+    <a href="#" class="delete-template" data-id="{{ t.id }}" data-name="{{ t.name }}" title="{% trans "Remove" %}">
         <img src="/static/icons/minus-circle.png" alt="{% trans "Remove" %}" />
     </a>
 {% endblock actions %}
--
libgit2 0.26.0