Last active
April 23, 2017 00:06
-
-
Save valdiney/3ae82da76a388c2289f1f9fb13e045f1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
$(function() { | |
$( "#my_sortable" ).sortable({ | |
update: function() { | |
var order = $("#my_sortable").sortable('toArray'); | |
$.post("editar_posicao.php", {posicoes: order}) | |
} | |
}); | |
$( "#my_sortable" ).disableSelection(); | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment