Victor Berchet
Victor Berchet
I have not use this plugin for a long time. If you want a fix or a new feature, consider submitting PRs On Fri, May 5, 2017, 15:52 SUPERNOVI wrote:...
it would really help if you can come with a runnable example (ie a plunker) and describe the observed vs desired behavior. Thanks.
Thanks for the fiddle. The problem is that the sortable plugin does not update the the `data-bsm-order` when an option is added or when the list is re-ordered. One solution...
You should try to do it in the sortable plugin and probably want to do `jQuery(option).data('bsm-order', i)`
Could you try to come up with a simple repro case that do not depend on a server side fmwk ?
I've started to look at this. This is because you use the change event and the previous order is not taken into account in this case. The solution is probably...
You should try triggering a click event rather than a change event. On clicks we know that the option has been (un)selected an can deal with the diff. On change...
This belongs to the server side, see https://github.com/vicb/bsmSelect/issues/15
Yep but why would you store it client side, that is redundant information with the `` itself. Anyway if you really need to do this the best would be to...
True, if you want to restore the order of unselected options, you might want to use your solution. Then I would suggest to serialize the order on the form submit...