From 99d8dd84ec770f6d98857394af68a3c8dc6442ab Mon Sep 17 00:00:00 2001 From: Karel Kozlik Date: Fri, 8 Feb 2019 15:10:54 +0100 Subject: [PATCH] Allow to drag rows even when user click to not "TD" node fix #93 --- js/jquery.tablednd.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/js/jquery.tablednd.js b/js/jquery.tablednd.js index d91f175..7f7e140 100644 --- a/js/jquery.tablednd.js +++ b/js/jquery.tablednd.js @@ -167,10 +167,8 @@ jQuery.tableDnD = { // Iterate through each row, the row is bound to "this" if (! $(this).hasClass("nodrag")) { $(this).bind(startEvent, function(e) { - if (e.target.tagName === "TD") { - $.tableDnD.initialiseDrag(this, table, this, e, config); - return false; - } + $.tableDnD.initialiseDrag(this, table, this, e, config); + return false; }).css("cursor", "move"); // Store the tableDnD object } else { $(this).css("cursor", ""); // Remove the cursor if we don't have the nodrag class