Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
This is more of a bug request than a feature request, but right now if you move a block around and then return it to its original location, there is still a warning informing you that you must submit the page for the changes to take place. This warning is unnecessary, since there have actually been no net change to the block layout.
I envision a hidden form with the serialized block layout on the page when it was created within it. This is then parsed by javascript after every block move to determine if there's been any net change, and if there has to display that message to the user.
Comments
Comment #1
Susurrus CreditAttribution: Susurrus commentedComment #2
Susurrus CreditAttribution: Susurrus commentedIdeally this issue should be extended to tabledrag so that all uses of it can take advantage of this.
It seems like the easiest way to do this would be to have some JS load on page load that scans all tabledrag regions and initializes a data structure of where everything is originally. This can them be referenced after every move.
Comment #3
lotyrin CreditAttribution: lotyrin commentedComment #4
dawehner