diff --git a/apps/assets/templates/assets/cmd_filter_rule_list.html b/apps/assets/templates/assets/cmd_filter_rule_list.html index e2452c391..4bdf5ff2b 100644 --- a/apps/assets/templates/assets/cmd_filter_rule_list.html +++ b/apps/assets/templates/assets/cmd_filter_rule_list.html @@ -103,7 +103,7 @@ $(document).ready(function(){ .on('click', '.btn-delete', function () { var $this = $(this); var $data_table = $('#cmd_filter_rule_list_table').DataTable(); - var name = $(this).closest("tr").find(":nth-child(2)").children('a').html(); + var name = $(this).closest("tr").find(":nth-child(2)").html(); var uid = $this.data('uid'); var the_url = '{% url "api-assets:cmd-filter-rule-detail" filter_pk=object.id pk=DEFAULT_PK %}'.replace('{{ DEFAULT_PK }}', uid); objectDelete($this, name, the_url); diff --git a/apps/assets/templates/assets/domain_gateway_list.html b/apps/assets/templates/assets/domain_gateway_list.html index f7a9c8d60..ade46acc9 100644 --- a/apps/assets/templates/assets/domain_gateway_list.html +++ b/apps/assets/templates/assets/domain_gateway_list.html @@ -118,7 +118,7 @@ $(document).ready(function(){ .on('click', '.btn-delete', function () { var $this = $(this); var $data_table = $('#domain_list_table').DataTable(); - var name = $(this).closest("tr").find(":nth-child(2)").children('a').html(); + var name = $(this).closest("tr").find(":nth-child(2)").html(); var uid = $this.data('uid'); var the_url = '{% url "api-assets:gateway-detail" pk=DEFAULT_PK %}'.replace('{{ DEFAULT_PK }}', uid); objectDelete($this, name, the_url);