diff options
author | Dries Buytaert <dries@buytaert.net> | 2010-03-31 19:22:00 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2010-03-31 19:22:00 +0000 |
commit | 759c2955c3d1119d1ce597677e67ffd12f4dc2c8 (patch) | |
tree | 02a54b6c1ef430f9d8b8d469c7d646ed5328a47b /misc/tabledrag.js | |
parent | fa63e6fe6873a4133055c01e277a6b2ace28b759 (diff) | |
download | brdo-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.js | 2 |
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); } |