Sha256: e699d845ed6e610addc845aa97a8bfc66c1b97088d40073b4c02e9255ddf82d1

Contents?: true

Size: 281 Bytes

Versions: 7

Compression:

Stored size: 281 Bytes

Contents

fixHelper = (e, ui) ->
  ui.children().each ->
    self = $ @
    self.width self.width()
  ui

$(document).ready ->
  $("tbody.sortable").sortable({ axis: 'y', items: 'tr', helper: fixHelper,  handle: '.handle'  })
  $("ul.sortable").sortable({ items: 'li', helper: fixHelper  })

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
fullstack-admin-0.2.26 app/assets/javascripts/fullstack/admin/src/sortable.js.coffee
fullstack-admin-0.2.25 app/assets/javascripts/fullstack/admin/src/sortable.js.coffee
fullstack-admin-0.2.24 app/assets/javascripts/fullstack/admin/src/sortable.js.coffee
fullstack-admin-0.2.23 app/assets/javascripts/fullstack/admin/src/sortable.js.coffee
fullstack-admin-0.2.22 app/assets/javascripts/fullstack/admin/src/sortable.js.coffee
fullstack-admin-0.2.21 app/assets/javascripts/fullstack/admin/src/sortable.js.coffee
fullstack-admin-0.2.20 app/assets/javascripts/fullstack/admin/src/sortable.js.coffee