projects
/
project/drupal.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
744575c
)
Issue #800968 by JacobSingh, ksenzee, Big Z: Tabledrag.js should not use for...in...
author
Gábor Hojtsy
Mon, 16 Apr 2012 13:18:29 +0000 (15:18 +0200)
committer
Gábor Hojtsy
Mon, 16 Apr 2012 13:18:29 +0000 (15:18 +0200)
misc/tabledrag.js
patch
|
blob
|
blame
|
history
diff --git
a/misc/tabledrag.js
b/misc/tabledrag.js
index
9916821
..
4ac3714
100644
(file)
--- a/
misc/tabledrag.js
+++ b/
misc/tabledrag.js
@@
-1014,7
+1014,7
@@
Drupal.tableDrag.prototype.row.prototype.findSiblings = function(rowSettings) {
var siblings = new Array();
var directions = new Array('prev', 'next');
var rowIndentation = this.indents;
- for (var d in directions) {
+ for (var d = 0; d < directions.length; d++) {
var checkRow = $(this.element)[directions[d]]();
while (checkRow.length) {
// Check that the sibling contains a similar target field.