Sorry chio I just noticed your post..
Thanks! Seems to work great!
Did you test it on local server or live server ? I only tested it on local server
On small problem: Moving by arrow-klick (as use before) doesnt work if you move a little bit while clicking. Could there be a minimum movement (eg 2 pixels)
Not sure what you mean..
When you reorder via drag N drop the arrows are not reloaded.. So you need to refresh the page so they can reload..
So far I left them as they were, but maybe further we shall remove it..?
Why do we need those #dragableTable_X li styles for each group? It would be better ti highlite the one moved element. is this possible?
By highliting you mean to change for eg. background color or something for the element while you drag it ?
If you mean that, that is easy, that element already have opacity. I will replace opacity code with background..
Because Java script wthic is written to backend_body_js file trigers group taken from #dragableTable_X
This script is written from modify.php file
For first group it is #dragableTable_1 , so when you reorder, group id (in this case = 1) will be sent via java sccript from backend_body_js to reorderDND.php where SQL will be = REORED members WHERE group = 1 --- this way only elements from group 1 gets reorder..
It is the $_POST['group']) variable about which we disscussed (needs to be sanitized)
Just to mention that I just used some example from some site to adapt this for WB, and I am glad that it works, and I hope more experienced coders will help to improve the code even more.. that is better for all bakers..