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.53 app/assets/javascripts/support/base.js.coffee
fullstack-admin-0.1.52 app/assets/javascripts/support/base.js.coffee
fullstack-admin-0.1.51 app/assets/javascripts/support/base.js.coffee
fullstack-admin-0.1.50 app/assets/javascripts/support/base.js.coffee
fullstack-admin-0.1.49 app/assets/javascripts/support/base.js.coffee
fullstack-admin-0.1.48 app/assets/javascripts/support/base.js.coffee
fullstack-admin-0.1.47 app/assets/javascripts/support/base.js.coffee
fullstack-admin-0.1.46 app/assets/javascripts/support/base.js.coffee
fullstack-admin-0.1.45 app/assets/javascripts/support/base.js.coffee
fullstack-admin-0.1.44 app/assets/javascripts/support/base.js.coffee
fullstack-admin-0.1.43 app/assets/javascripts/support/base.js.coffee
fullstack-admin-0.1.42 app/assets/javascripts/support/base.js.coffee
fullstack-admin-0.1.41 app/assets/javascripts/support/base.js.coffee
fullstack-admin-0.1.40 app/assets/javascripts/support/base.js.coffee
fullstack-admin-0.1.39 app/assets/javascripts/support/base.js.coffee
fullstack-admin-0.1.38 app/assets/javascripts/support/base.js.coffee
fullstack-admin-0.1.37 app/assets/javascripts/support/base.js.coffee
fullstack-admin-0.1.36 app/assets/javascripts/support/base.js.coffee
fullstack-admin-0.1.35 app/assets/javascripts/support/base.js.coffee
fullstack-admin-0.1.34 app/assets/javascripts/support/base.js.coffee