Sha256: 70ccddb2a5f739dae5f4026db8b16aefb4bc7caa1945b8162652ef1b05063284

Contents?: true

Size: 922 Bytes

Versions: 8

Compression:

Stored size: 922 Bytes

Contents

$ ->
  # Preloading all background images from CSS files.
  $.preloadCssImages()

  # We obviously have javascript enabled.
  $('html').removeClass('no-js')

  # Initialize the GUI.
  Alchemy.GUI.init()

  # Fade all growl notifications.
  if $('#flash_notices').length > 0
    Alchemy.Growler.fade()

  # Add observer for please wait overlay.
  $('a.please_wait, #main_navi a.main_navi_entry, div.button_with_label form :submit, #sub_navigation .subnavi_tab a, .pagination a')
    .not('*[data-alchemy-confirm], #subnav_additions .subnavi_tab button')
    .click ->
      Alchemy.pleaseWaitOverlay()

  # Hack for enabling tab focus for <a>'s styled as button.
  $('a.button').attr({tabindex: 0})

  # Locale select handler
  $('select#change_locale').on 'change', (e) ->
    url = Alchemy.current_url
    delimiter = if url.match(/\?/) then '&' else '?'
    window.location = url + delimiter + 'locale=' + $(this).val()

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
alchemy_cms-2.5.3.1 app/assets/javascripts/alchemy/alchemy.onload.js.coffee
alchemy_cms-2.5.3 app/assets/javascripts/alchemy/alchemy.onload.js.coffee
alchemy_cms-2.5.2.2 app/assets/javascripts/alchemy/alchemy.onload.js.coffee
alchemy_cms-2.5.2.1 app/assets/javascripts/alchemy/alchemy.onload.js.coffee
alchemy_cms-2.5.2 app/assets/javascripts/alchemy/alchemy.onload.js.coffee
alchemy_cms-2.5.1 app/assets/javascripts/alchemy/alchemy.onload.js.coffee
alchemy_cms-2.5.0 app/assets/javascripts/alchemy/alchemy.onload.js.coffee
alchemy_cms-2.5.0.rc3 app/assets/javascripts/alchemy/alchemy.onload.js.coffee