私は、CMS システム用の小さなページ ソーティング システムに取り組んできました。現在、jQuery UI のおかげでソート可能にしたテーブルにデータ (すべてのページ) を表示しています。唯一の問題は、リスト オブジェクト内のソートされていないリストなどの親行に子ページ行が割り当てられないことです。
http://www.lautenbagreclame.nl/stackover_example.jpg
$('table#pages-overview tbody').sortable({
handle : 'i.icon-resize-vertical',
opacity : 0.3,
placeholder : 'drag-drop-table-row',
axis : 'y',
helper: fixHelper,
forceHelperSize: true,
cursor: 'n-resize',
zIndex: 9999,
start: function(event, ui) {
elementObjPagesOverview.children('tr').each(function() {
if($(this).data('group') != ui.helper.data('group')) {
// row isnt in the same group... so not allowed to connect !
} else {
// row is in the same group... so allowed to connect !
}
});
}
});
テーブル全体が動的に構築されます。誰かがこの問題で私を助けてくれることを願っています。
ありがとう!