Comma-separated Selector
Posted: 2021-05-14 22:13
I have reason to use this for a particular project: Comma-separated Selector
It renders in the page great and I can sort the selected items and is saved in a comma separated list perfectly
BUT
on re-editing the right hand selected list shows all the comma separated items but in their numerical order, not in the order saved
eg saved in database as 39,38,11,12 displays as 11,12,34,39
obviously this is confusing to the end user
however if no action is taken by the user on the sorter then the original 39,38,11,12 remains
just they appear out of expected order
Am assuming its a javascript issue in includes/wdg/classes/BaseListSorter.js
JS def not my strength
Anyone else had this issue?
Thanks
Ian
It renders in the page great and I can sort the selected items and is saved in a comma separated list perfectly
BUT
on re-editing the right hand selected list shows all the comma separated items but in their numerical order, not in the order saved
eg saved in database as 39,38,11,12 displays as 11,12,34,39
obviously this is confusing to the end user
however if no action is taken by the user on the sorter then the original 39,38,11,12 remains
just they appear out of expected order
Am assuming its a javascript issue in includes/wdg/classes/BaseListSorter.js
JS def not my strength
Anyone else had this issue?
Thanks
Ian