summaryrefslogtreecommitdiff
path: root/modules/block
diff options
context:
space:
mode:
authorwebchick <webchick@24967.no-reply.drupal.org>2011-12-28 20:38:27 -0800
committerwebchick <webchick@24967.no-reply.drupal.org>2011-12-28 20:38:27 -0800
commit974ae8947b9804d215994358f8ad5c4c379dc8f6 (patch)
tree56b3d61c0981d81dde57949ea90b34137f8ebb04 /modules/block
parent88593096e33e2ed28ae813c60e304f61c8e31169 (diff)
downloadbrdo-974ae8947b9804d215994358f8ad5c4c379dc8f6.tar.gz
brdo-974ae8947b9804d215994358f8ad5c4c379dc8f6.tar.bz2
Revert "Issue #1039666 by Jelle_S: Fixed Placing a block in a region via select dropdown moves it to the top of the region, but it will show at the bottom."
This reverts commit 67b7ac08eb8a688f65e104717749f5abd17b9e24.
Diffstat (limited to 'modules/block')
-rw-r--r--modules/block/block.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/block/block.js b/modules/block/block.js
index 64555999c..ce4995dca 100644
--- a/modules/block/block.js
+++ b/modules/block/block.js
@@ -117,11 +117,11 @@ Drupal.behaviors.blockDrag = {
var select = $(this);
tableDrag.rowObject = new tableDrag.row(row);
- // Find the correct region and insert the row as the last in the region.
+ // Find the correct region and insert the row as the first in the region.
$('tr.region-message', table).each(function () {
if ($(this).is('.region-' + select[0].value + '-message')) {
// Add the new row and remove the old one.
- $(this).nextUntil('.region-title').last().after(row);
+ $(this).after(row);
// Manually update weights and restripe.
tableDrag.updateFields(row.get(0));
tableDrag.rowObject.changed = true;