Sha256: e1a04c58e281a950da8e29b168cc841a566ca641f7ae85ecdf3fedb9ed75f9f8

Contents?: true

Size: 592 Bytes

Versions: 30

Compression:

Stored size: 592 Bytes

Contents

#= require jquery
#= require jquery_ujs
#= require jquery-ui
#= require notify
#= require jquery.sticky

$(document).ready ->
  $(".btn.toggle-delete").on "click", (e) ->
    button = $(this)
    links = $("[data-method='delete']")
    if button.hasClass("showing")
      links.hide "fast"
      button.removeClass "showing"
    else
      links.show "fast"
      button.addClass "showing"

fixHelper = (e, ui) ->
  ui.children().each ->
    self = $ @
    self.width self.width()
  ui
  
$("tbody.sortable").sortable({ axis: 'y', items: 'tr', helper: fixHelper,  handle: '.handle'  })

    

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
fullstack-admin-0.1.33 app/assets/javascripts/support/base.js.coffee
fullstack-admin-0.1.32 app/assets/javascripts/support/base.js.coffee
fullstack-admin-0.1.30 app/assets/javascripts/support/base.js.coffee
fullstack-admin-0.1.29 app/assets/javascripts/support/base.js.coffee
fullstack-admin-0.1.28 app/assets/javascripts/support/base.js.coffee
fullstack-admin-0.1.27 app/assets/javascripts/support/base.js.coffee
fullstack-admin-0.1.26 app/assets/javascripts/support/base.js.coffee
fullstack-admin-0.1.25 app/assets/javascripts/support/base.js.coffee
fullstack-admin-0.1.24 app/assets/javascripts/support/base.js.coffee
fullstack-admin-0.1.23 app/assets/javascripts/support/base.js.coffee