diff --git a/core/misc/tabledrag.js b/core/misc/tabledrag.js index a36d0aeb079db702e95dce9b21c5c2ca69777f70..273dcc1b28e86f7dd1d6f3a58742fdace8b6818f 100644 --- a/core/misc/tabledrag.js +++ b/core/misc/tabledrag.js @@ -84,10 +84,7 @@ Drupal.tableDrag = function (table, tableSettings) { // Make each applicable row draggable. // Match immediate children of the parent element to allow nesting. - var $rows = $table.find('> tr.draggable, > tbody > tr.draggable'); - if ($rows.length > 1) { - $rows.each(function () { self.makeDraggable(this); }); - } + $table.find('> tr.draggable, > tbody > tr.draggable').each(function () { self.makeDraggable(this); }); // Add a link before the table for users to show or hide weight columns. $table.before($('<a href="#" class="tabledrag-toggle-weight"></a>')