diff options
Diffstat (limited to 'misc/tabledrag.js')
-rw-r--r-- | misc/tabledrag.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/misc/tabledrag.js b/misc/tabledrag.js index 627bb5b1a..c671c31ed 100644 --- a/misc/tabledrag.js +++ b/misc/tabledrag.js @@ -169,7 +169,8 @@ Drupal.tableDrag.prototype.makeDraggable = function (item) { // Create the handle. var handle = $('<a href="#" class="tabledrag-handle"><div class="handle"> </div></a>').attr('title', Drupal.t('Drag to re-order')); // Insert the handle after indentations (if any). - if ($('td:first .indentation:last', item).after(handle).size()) { + if ($('td:first .indentation:last', item).length) { + $('td:first .indentation:last', item).after(handle); // Update the total width of indentation in this entire table. self.indentCount = Math.max($('.indentation', item).size(), self.indentCount); } |