summaryrefslogtreecommitdiff
path: root/misc/tabledrag.js
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2010-03-09 20:52:28 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2010-03-09 20:52:28 +0000
commit290fe38c571c278fd9e43401870f7f81b83f2a8a (patch)
tree0315fb6fe3e2d70bb989eb37cbc872b129005724 /misc/tabledrag.js
parent2787acc050ac046337aac300915a5e664d90f918 (diff)
downloadbrdo-290fe38c571c278fd9e43401870f7f81b83f2a8a.tar.gz
brdo-290fe38c571c278fd9e43401870f7f81b83f2a8a.tar.bz2
#653580 by mfer, Rob Loach, cosmicdreams, et al: Upgrade to jQuery 1.4.2.
Diffstat (limited to 'misc/tabledrag.js')
-rw-r--r--misc/tabledrag.js3
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">&nbsp;</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);
}