Sha256: 17c1fee2e36c182e5ac64c6f0ad97edb4b50c0d80396c3f53eb5a0b662a83a28

Contents?: true

Size: 605 Bytes

Versions: 5

Compression:

Stored size: 605 Bytes

Contents

<div class="row">
  <div class="col-md-3">
    <div id="manage_menu"></div>
  </div>
  <div class="col-md-9">
    <div id="manage_list">
    </div>
  </div>

</div>

<% content_for :javascript do %>
    <script>
      // 排序
      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})
      });
    </script>
<% end %>

Version data entries

5 entries across 5 versions & 1 rubygems

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