Sha256: d5a0d724834028acaa8cca93cc6379dcb5f561ad2d84790414b5d16b22219aba

Contents?: true

Size: 617 Bytes

Versions: 28

Compression:

Stored size: 617 Bytes

Contents

<div class="button_with_label">
  <%= select_tag(
    'language',
    options_for_select(@languages.map { |l| [l.name, l.id] }, session[:language_id]),
    :id => 'language_tree_select',
    :class => 'alchemy_selectbox short'
  ) %>
  <label><%= t("Language tree") %></label>
</div>

<% content_for :javascripts do %>
<script type="text/javascript" charset="utf-8">
  (function($) {
    $('#language_tree_select').on('change', function() {
      Alchemy.pleaseWaitOverlay();
      $.get('<%= switch_language_admin_pages_path %>', {
        language_id: this.value
      });
    });
  })(jQuery);
</script>
<% end %>

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
alchemy_cms-2.2.rc13 app/views/alchemy/admin/partials/_language_tree_select.html.erb
alchemy_cms-2.2.rc11 app/views/alchemy/admin/partials/_language_tree_select.html.erb
alchemy_cms-2.2.rc8 app/views/alchemy/admin/partials/_language_tree_select.html.erb
alchemy_cms-2.2.rc7 app/views/alchemy/admin/partials/_language_tree_select.html.erb
alchemy_cms-2.2.rc6 app/views/alchemy/admin/partials/_language_tree_select.html.erb
alchemy_cms-2.2.rc3 app/views/alchemy/admin/partials/_language_tree_select.html.erb
alchemy_cms-2.2.rc2 app/views/alchemy/admin/partials/_language_tree_select.html.erb
alchemy_cms-2.2.rc1 app/views/alchemy/admin/partials/_language_tree_select.html.erb