2
메신저 중첩 된 소트 가능을 사용하고 얼마 동안 작동하지만 약 1 분 사용 후에는 전체 목록을 반환하지만 일부만 반환합니다. Im toArray를 사용하여 데이터를 PHP 스크립트로 다시 반환합니다.이 스크립트는 mysql을 채 웁니다. 반환 된 json 값이 전체 목록 업데이트가 아닌 경우 데이터베이스가 엉망입니다.nestedSortable toArray 전체 세트를 반환하지 않음
이 이상한 행동에 문제가있는 사람이 있습니까? 아니면 제가 잘못하고있는 사람이 있습니까?
$('#load').click(function(){
$.get("get_tags.php", function(data){
$("#data").html(data);
$('ol.sortable').nestedSortable({
disableNesting: 'no-nest',
forcePlaceholderSize: true,
handle: 'div',
helper: 'clone',
items: 'li',
maxLevels: 3,
opacity: .6,
placeholder: 'placeholder',
errorClass: 'error',
revert: 250,
tabSize: 25,
tolerance: 'pointer',
toleranceElement: '> div',
update: function() {
list = $(this).nestedSortable('toArray');
$("#result2").html(JSON.stringify(list));
$.post('x.php', { update_sql: 'ok', list: JSON.stringify(list) },
function(data){
$("#result").html(data);
},
"html")
}
});
});
});
2011 년 5 월 11 일에 마지막 업데이트되었습니다. http://mjsarfatti.com/sandbox/nestedSortable/ – NccWarp9
js 함수에서'update' 대신'relocate' 이벤트를 사용하려 했습니까? – DOZ