Sha256: 52c641b6a2451b36b93d02315ea457216d513f81e787e36fd1ed201dbf788f27

Contents?: true

Size: 487 Bytes

Versions: 2

Compression:

Stored size: 487 Bytes

Contents

module ExtForm
  module Helpers
    module Tags
      class GroupedCollectionSelect < ActionView::Helpers::Tags::GroupedCollectionSelect
        def render
          output = super

          html_options = {}
          add_default_name_and_id(html_options)

          output << @template_object.javascript_tag do
            "$(function(){$('##{html_options['id']}').trigger('select2_load');});".html_safe
          end
          output.html_safe
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ext_form-0.1.5 lib/ext_form/helpers/tags/grouped_collection_select.rb
ext_form-0.1.4 lib/ext_form/helpers/tags/grouped_collection_select.rb