Skip to content
Snippets Groups Projects
Commit b39fe6db authored by catch's avatar catch
Browse files

Issue #1039666 by mlncn: Fixed Placing a block in a region via select dropdown...

Issue #1039666 by mlncn: 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.
parent 23e7a3cf
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -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 first in the region.
// Find the correct region and insert the row as the last 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).after(row);
$(this).nextUntil('.region-title').last().after(row);
// Manually update weights and restripe.
tableDrag.updateFields(row.get(0));
tableDrag.rowObject.changed = true;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment