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-5.3.8 app/assets/javascripts/alchemy/alchemy.gui.js.coffee
alchemy_cms-5.3.7 app/assets/javascripts/alchemy/alchemy.gui.js.coffee
alchemy_cms-5.3.6 app/assets/javascripts/alchemy/alchemy.gui.js.coffee
alchemy_cms-5.3.5 app/assets/javascripts/alchemy/alchemy.gui.js.coffee
alchemy_cms-5.3.4 app/assets/javascripts/alchemy/alchemy.gui.js.coffee
alchemy_cms-5.3.3 app/assets/javascripts/alchemy/alchemy.gui.js.coffee
alchemy_cms-5.3.2 app/assets/javascripts/alchemy/alchemy.gui.js.coffee
alchemy_cms-5.3.1 app/assets/javascripts/alchemy/alchemy.gui.js.coffee
alchemy_cms-5.3.0 app/assets/javascripts/alchemy/alchemy.gui.js.coffee
alchemy_cms-5.2.7 app/assets/javascripts/alchemy/alchemy.gui.js.coffee
alchemy_cms-5.2.6 app/assets/javascripts/alchemy/alchemy.gui.js.coffee
alchemy_cms-5.1.10 app/assets/javascripts/alchemy/alchemy.gui.js.coffee
alchemy_cms-5.0.10 app/assets/javascripts/alchemy/alchemy.gui.js.coffee
alchemy_cms-4.6.7 app/assets/javascripts/alchemy/alchemy.gui.js.coffee
alchemy_cms-5.2.5 app/assets/javascripts/alchemy/alchemy.gui.js.coffee
alchemy_cms-5.1.9 app/assets/javascripts/alchemy/alchemy.gui.js.coffee
alchemy_cms-5.0.9 app/assets/javascripts/alchemy/alchemy.gui.js.coffee
alchemy_cms-4.6.6 app/assets/javascripts/alchemy/alchemy.gui.js.coffee
alchemy_cms-5.2.4 app/assets/javascripts/alchemy/alchemy.gui.js.coffee
alchemy_cms-5.1.8 app/assets/javascripts/alchemy/alchemy.gui.js.coffee