Commit ec28178d by Dányi Bence

webui: remove '-button' suffix

parent 4064aad2
......@@ -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'));
......
......@@ -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>
......
......@@ -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 %}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment