Sha256: 6b981c84a404cdbc027cb06f845a4cf2892f4824c30ee11d11c26efaaa102b1c

Contents?: true

Size: 777 Bytes

Versions: 21

Compression:

Stored size: 777 Bytes

Contents

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

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


$(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"

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

  $("a[rel=facebox]").facebox()
  $("[data-tip]").tooltip({
      title: ->
        $(@).data('tip')
  })
  
  

  
    

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
fullstack-admin-0.1.54 app/assets/javascripts/support/base.js.coffee