Sha256: cc80054455380dbd1240aa13b7f226d66101c73d068f90ffd819299ff609447d
Contents?: true
Size: 415 Bytes
Versions: 5
Compression:
Stored size: 415 Bytes
Contents
$(function(){ if($('#navigations-index').length <= 0){ return; } dragula([$('#nav-table tbody')[0]]).on('drop', function(){ console.log('drop') // 保存顺序 var newOrders = $('#nav-table tbody').children().map(function(){ return $(this).data('navigation-id') }) .get(); var update_url = $('#nav-table tbody').data('update-url'); $.post(update_url, {navigations: newOrders}) }); });
Version data entries
5 entries across 5 versions & 1 rubygems