Commit a34e071a by Dányi Bence

webui: stop event propagation on template-unshare

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