Hello Everyone,
I have imported six buttons into the stage. Each button has the same class (".ritual") and is grouped in one DIV named rituals. Now I am trying to make them sortable.Problem: it is not working! I am using jQuery UI. I tested the draggable interaction and was working just fine:
yepnope({nope:['jquery-ui-1.9.2.custom.min.js', 'jquery-ui.js', 'jquery.ui.touch-punch.min.js'],complete: init});
function init() {
sym.$ (".ritual").draggable({axis: "y"});
}
But the sortable one is not working. it does not diplay errors, but when I drag one button the others don't automatically sort. When I drop the button, it return back to the starting position!:
yepnope({nope:['jquery-ui-1.9.2.custom.min.js', 'jquery-ui.js', 'jquery.ui.touch-punch.min.js'],complete: init});
function init() {
sym.$ ("rituals").sortable({containment: "parent"});
sym.$ ("rituals").disableSelection();
}
Please, if you can HELP ME!
Thank you!