Sha256: d701f3b495406f9663893e6ea81df07cca8267b6fcf6932b180ebb6454c101ce
Contents?: true
Size: 1015 Bytes
Versions: 1
Compression:
Stored size: 1015 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 = url.match(/\?/) ? '&' : '?' window.location = url + delimiter + 'locale=' + $(this).val() # Resize the Alchemy frame on every browser resize. jQuery(window).resize -> Alchemy.resizeFrame()
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
alchemy_cms-2.4.beta2 | app/assets/javascripts/alchemy/alchemy.onload.js.coffee |