As reported by yched in issue #322 June 22, 2010 - 12:35 of #448292: Drag and Drop for table rows is not accessible to screen-reader users

small issue :
- switch to 'manual mode ('show weights)
- change weights so that the ordering is different (i.e give the 1st row a higher weight than the second row)
- go back to 'drag mode' ('hide weights'), drag and drop order is now inconsistent with the actual weights.

When going back to 'drag mode', the order of the rows should be updated to match the manually entered weights ?

I've detailed the problem further in the screenshots below. Some swift javascript should be able to clean up this UI issue. It's not critical, but it would be a nice thing to fix up in D7.

Comments

franz’s picture

Version: 7.x-dev » 8.x-dev
Issue tags: +Needs backport to D7

This is still the same on D8, and definetely a nice improv. I lack the skills to mess that much with Drupal js, can someone point me a direction? I think tabledrag.js needs a special function for that .reorderRows() maybe?

nod_’s picture

I'm not sure introducing more code to tabledrag is a good idea.
I'll link back from #1524414: Rewrite tabledrag.js to use jQuery UI

hass’s picture

nod_’s picture

Category: Bug report » Feature request
Issue summary: View changes
Status: Active » Closed (won't fix)

I don't want to change the current tabledrag code to support this.

This would be a feature for a rewrite of tabledrag.