From 520234c4247739d98948d69b1c3793dd6405f3ac Mon Sep 17 00:00:00 2001 From: Lukas Metzger Date: Mon, 25 Jan 2016 18:37:35 +0100 Subject: [PATCH] Fixed bug - canceled delete of domain or user disabled click for matching line --- js/domains.js | 6 +++--- js/users.js | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) 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); });