summaryrefslogtreecommitdiff
path: root/misc/tabledrag.js
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2010-03-31 19:22:00 +0000
committerDries Buytaert <dries@buytaert.net>2010-03-31 19:22:00 +0000
commit759c2955c3d1119d1ce597677e67ffd12f4dc2c8 (patch)
tree02a54b6c1ef430f9d8b8d469c7d646ed5328a47b /misc/tabledrag.js
parentfa63e6fe6873a4133055c01e277a6b2ace28b759 (diff)
downloadbrdo-759c2955c3d1119d1ce597677e67ffd12f4dc2c8.tar.gz
brdo-759c2955c3d1119d1ce597677e67ffd12f4dc2c8.tar.bz2
- Patch #758514 by fago: second tabledrag table on a page sets wrong parent ids.
Diffstat (limited to 'misc/tabledrag.js')
-rw-r--r--misc/tabledrag.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/misc/tabledrag.js b/misc/tabledrag.js
index 11ec74629..8d378e2cc 100644
--- a/misc/tabledrag.js
+++ b/misc/tabledrag.js
@@ -640,7 +640,7 @@ Drupal.tableDrag.prototype.updateField = function (changedRow, group) {
// Use the first row in the table as source, because it's guaranteed to
// be at the root level. Find the first item, then compare this row
// against it as a sibling.
- sourceRow = $('tr.draggable:first').get(0);
+ sourceRow = $(this.table).find('tr.draggable:first').get(0);
if (sourceRow == this.rowObject.element) {
sourceRow = $(this.rowObject.group[this.rowObject.group.length - 1]).next('tr.draggable').get(0);
}