Sha256: ab48f00c63d9877e5166d6b447a70ac7d02951e82917b1d58f4b948436b4f286

Contents?: true

Size: 369 Bytes

Versions: 5

Compression:

Stored size: 369 Bytes

Contents

$('#manage_list').html('<%= j render('manage_list') %>');

// 排序
dragula([$('#modal-list')[0]]).on('drop', function(){
  console.log('排序');

  var newOrders = $('#modal-list').children().map(function(){
        return $(this).data('id')
      })
      .get();

  var update_url = $('#modal-list').data('update-url');
  $.post(update_url, {page: newOrders})
});

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
blacksand-2.5.0 app/views/blacksand/dashboard/pages/children_partial.js.erb
blacksand-2.4.1 app/views/blacksand/dashboard/pages/children_partial.js.erb
blacksand-2.4.0 app/views/blacksand/dashboard/pages/children_partial.js.erb
blacksand-2.3.0 app/views/blacksand/dashboard/pages/children_partial.js.erb
blacksand-2.2.2.1 app/views/blacksand/dashboard/pages/children_partial.js.erb