summaryrefslogtreecommitdiff
path: root/modules/block
diff options
context:
space:
mode:
Diffstat (limited to 'modules/block')
-rw-r--r--modules/block/block.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/block/block.js b/modules/block/block.js
index e36737441..72b56733a 100644
--- a/modules/block/block.js
+++ b/modules/block/block.js
@@ -113,7 +113,7 @@ Drupal.behaviors.blockDrag = {
$('select.block-region-select', context).once('block-region-select', function () {
$(this).change(function (event) {
// Make our new row and select field.
- var row = $(this).parents('tr:first');
+ var row = $(this).closest('tr');
var select = $(this);
tableDrag.rowObject = new tableDrag.row(row);