Sha256: 226b46d465c629f3704208629ae7b08e3c6cecf4c47b63b370940e2be5a691d7

Contents?: true

Size: 818 Bytes

Versions: 4

Compression:

Stored size: 818 Bytes

Contents

$(document).ready ->

  $('.addToggle').click ->
    $(this).next().toggle(500)
    
  $('.help_toggle').mouseenter ->
    $(this).next().show()
  $('.help_toggle').mouseleave ->
    $(this).next().hide()

  $("#layout_set").change ->
      $("#set_layout form").submit()
  
  if $(".tinymce").length > 0
    tinymce.init
      mode: "specific_textareas",
      editor_selector: 'tinymce',
      plugins: 'link'

  if $("#temp_layout").length > 0
    MyApp.addInitializer (options) ->
      venues_view = new Views.Venues.Index
        collection: options.venues

      MyApp.right_region.show( venues_view )

  if $('#carousel').length > 0
    $('#carousel').infiniteCarousel({})

  if $( "#accordion" ).length > 0
    $( "#accordion" ).accordion()

  if $( ".fancybox" ).length > 0
    $( ".fancybox" ).fancybox()

Version data entries

4 entries across 4 versions & 3 rubygems

Version Path
ish_lib-0.0.8 app/assets/javascripts/utils.coffee
ish_lib_engine-0.0.5 app/assets/javascripts/utils.coffee
ish_lib_assets-0.1.3 app/assets/javascripts/utils.coffee
ish_lib-0.0.3 app/assets/javascripts/utils.coffee