diff --git a/js/domains.js b/js/domains.js index 39b3d4e..039944e 100644 --- a/js/domains.js +++ b/js/domains.js @@ -93,9 +93,9 @@ function recreateTable(data) { }); - $('#table-domains>tbody>tr').click(function() { - var id = $(this).children('td').first().text(); - var type = $(this).children('td').eq(2).text(); + $('#table-domains>tbody>tr>td:not(:last-child)').click(function() { + var id = $(this).parent().children('td').first().text(); + var type = $(this).parent().children('td').eq(2).text(); if(type == 'MASTER') { location.assign('edit-master.php#' + id); diff --git a/js/users.js b/js/users.js index 4e7d0d7..80617f8 100644 --- a/js/users.js +++ b/js/users.js @@ -92,8 +92,8 @@ function recreateTable(data) { }); - $('#table-users>tbody>tr').click(function() { - var id = $(this).children('td').first().text(); + $('#table-users>tbody>tr>td:not(:last-child)').click(function() { + var id = $(this).parent().children('td').first().text(); location.assign('edit-user.php#' + id); });