Sha256: 1d56a1fffcd758022524a85e6a4b931fe3571ca44b6504bffa222ed515fdeb1c

Contents?: true

Size: 765 Bytes

Versions: 78

Compression:

Stored size: 765 Bytes

Contents

window.Alchemy = {} if window.Alchemy == undefined

# Alchemy GUI initializers
Alchemy.GUI =

  # Initializes all Alchemy GUI elements in given scope
  init: (scope) ->
    Alchemy.SelectBox(scope)
    Alchemy.Datepicker(scope)
    Alchemy.Tooltips(scope)
    Alchemy.Buttons.observe(scope)
    # Dialog links use event delegation and therefore do not
    # need to be re-initialized after dom elements get replaced
    unless scope
      Alchemy.watchForDialogs()
    Alchemy.Hotkeys(scope)
    Alchemy.ListFilter(scope)
    Alchemy.Autocomplete.tags(scope)
    $('[data-alchemy-char-counter]', scope).each ->
      new Alchemy.CharCounter(this)

  initElement: ($el) ->
    Alchemy.ElementDirtyObserver($el)
    Alchemy.GUI.init($el)
    Alchemy.ImageLoader($el)

Version data entries

78 entries across 78 versions & 1 rubygems

Version Path
alchemy_cms-4.4.3 app/assets/javascripts/alchemy/alchemy.gui.js.coffee
alchemy_cms-4.4.2 app/assets/javascripts/alchemy/alchemy.gui.js.coffee
alchemy_cms-4.4.1 app/assets/javascripts/alchemy/alchemy.gui.js.coffee
alchemy_cms-4.4.0 app/assets/javascripts/alchemy/alchemy.gui.js.coffee
alchemy_cms-4.3.2 app/assets/javascripts/alchemy/alchemy.gui.js.coffee
alchemy_cms-4.2.4 app/assets/javascripts/alchemy/alchemy.gui.js.coffee
alchemy_cms-4.3.1 app/assets/javascripts/alchemy/alchemy.gui.js.coffee
alchemy_cms-4.2.3 app/assets/javascripts/alchemy/alchemy.gui.js.coffee
alchemy_cms-4.3.0 app/assets/javascripts/alchemy/alchemy.gui.js.coffee
alchemy_cms-4.2.2 app/assets/javascripts/alchemy/alchemy.gui.js.coffee
alchemy_cms-4.1.2 app/assets/javascripts/alchemy/alchemy.gui.js.coffee
alchemy_cms-4.1.1 app/assets/javascripts/alchemy/alchemy.gui.js.coffee
alchemy_cms-4.2.1 app/assets/javascripts/alchemy/alchemy.gui.js.coffee
alchemy_cms-4.2.0 app/assets/javascripts/alchemy/alchemy.gui.js.coffee
alchemy_cms-4.2.0.rc1 app/assets/javascripts/alchemy/alchemy.gui.js.coffee
alchemy_cms-4.1.0 app/assets/javascripts/alchemy/alchemy.gui.js.coffee
alchemy_cms-4.1.0.rc1 app/assets/javascripts/alchemy/alchemy.gui.js.coffee
alchemy_cms-4.1.0.beta app/assets/javascripts/alchemy/alchemy.gui.js.coffee