{"size": 684, "ext": "js", "max_stars_repo_path": "application/modules/staff/views/js/place_sortable.js", "max_stars_repo_name": "vthawat/study_outside", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "application/modules/staff/views/js/place_sortable.js", "max_issues_repo_name": "vthawat/study_outside", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "application/modules/staff/views/js/place_sortable.js", "max_forks_repo_name": "vthawat/study_outside", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 38.0, "max_line_length": 88, "alphanum_fraction": 0.5058479532}
$(function  () {
   // $("ul.place-sortable").sortable();
    $( "ul.place-sortable" ).sortable({
        onDrop: function($item, container, _super, event ) {
           // var order = $("ul.place-sortable").sortable("serialize", {key:'order[]'});
            //$( "p" ).html( order );
            $item.removeClass(container.group.options.draggedClass).removeAttr("style")
            $("body").removeClass(container.group.options.bodyClass)
            $('.splace-id').each(function (i) {
               $('li.pid-'+$(this).val()).find('.place-order-number').text(i+1);
            //console.log($(this).val());
            });
            loadWayPoint();
        }
    });
   

});