Commit a34e071a by Dányi Bence

webui: stop event propagation on template-unshare

parent 46445a7f
......@@ -138,6 +138,9 @@ $(function() {
})
$('#modal').show();
});
$('.template-unshare').click(function(e){
e.stopPropagation();
});
$('#old-upload').click(function(e) {
e.preventDefault();
$(this).parent().parent().hide().parent().find('#old-upload-form').show();
......
......@@ -64,7 +64,7 @@
<span title="{{i.name}}">{{i.name|truncatechars:20}}</span>
({{i.get_running}}/{{i.instance_limit}})
{% csrf_token %}
<input type="submit" value="{% trans "Delete" %}" style="float: right"/>
<input type="submit" class="template-unshare" value="{% trans "Delete" %}" style="float: right"/>
</form>
<div class="clear"></div>
</li>
......
......@@ -17,7 +17,7 @@
<span title="{{i.name}}">{{i.name|truncatechars:20}}</span>
({{i.get_running}}/{{i.instance_limit}})
{% csrf_token %}
<input class="unshare" type="submit" value="{% trans "Delete" %}" style="float: right"/>
<input class="template-unshare" type="submit" value="{% trans "Delete" %}" style="float: right"/>
</form>
<div class="clear"></div>
</li>
......
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