Commit bde8c54a by Kálmán Viktor

network: fix remove event firing twice

parent 458a7b75
$('i[class="fa fa-times"]').click(function() { $('#small_rule_table i[class="fa fa-times"]').click(function() {
href = $(this).parent('a').attr('href'); href = $(this).parent('a').attr('href');
csrf = getCookie('csrftoken'); csrf = getCookie('csrftoken');
var click_this = this; var click_this = this;
......
$('i[class="fa fa-times"]').click(function() { $('.ethernet-devices-mini-table i[class="fa fa-times"]').click(function() {
href = $(this).parent('a').attr('href'); href = $(this).parent('a').attr('href');
csrf = getCookie('csrftoken'); csrf = getCookie('csrftoken');
var click_this = this; var click_this = this;
......
...@@ -83,7 +83,8 @@ class SmallRuleTable(Table): ...@@ -83,7 +83,8 @@ class SmallRuleTable(Table):
class Meta: class Meta:
model = Rule model = Rule
attrs = {'class': 'table table-striped table-bordered table-condensed'} attrs = {'class': 'table table-striped table-bordered table-condensed',
'id': "small_rule_table"}
fields = ('rule', 'action', ) fields = ('rule', 'action', )
......
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