Sha256: dab87bae2a5d75865014230f4dffc43f80d28a6374a36c973b225c073e12bee5

Contents?: true

Size: 775 Bytes

Versions: 30

Compression:

Stored size: 775 Bytes

Contents

<% if @filter_submit_success %>
  <%= turbo_stream.append_all "body" do %>
    <script>
      (function() {
        const formId = <%= @refine_filter_builder.client_id.to_json.html_safe %>
        const event = new CustomEvent("filter-submit-success", {
          bubbles: true,
          detail: {
            stableId: <%= @stable_id.to_json.html_safe %>,
            url: <%= @url_for_redirect.to_json.html_safe %>,
            formId: formId
          }
        })
        document
          .getElementById(<%= dom_id(@refine_filter_builder, "query").to_json.html_safe %>)
          .dispatchEvent(event)
      })()
    </script>
  <% end %>
<% else %>
  <%= turbo_stream.replace(dom_id(@refine_filter_builder, "query"), partial: "refine/blueprints/query") %>
<% end %>

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
refine-rails-2.12.0 app/views/refine/blueprints/create.turbo_stream.erb
refine-rails-2.11.12 app/views/refine/blueprints/create.turbo_stream.erb
refine-rails-2.11.11 app/views/refine/blueprints/create.turbo_stream.erb
refine-rails-2.11.10 app/views/refine/blueprints/create.turbo_stream.erb
refine-rails-2.11.9 app/views/refine/blueprints/create.turbo_stream.erb
refine-rails-2.11.8 app/views/refine/blueprints/create.turbo_stream.erb
refine-rails-2.11.6 app/views/refine/blueprints/create.turbo_stream.erb
refine-rails-2.11.5 app/views/refine/blueprints/create.turbo_stream.erb
refine-rails-2.11.4 app/views/refine/blueprints/create.turbo_stream.erb
refine-rails-2.11.3 app/views/refine/blueprints/create.turbo_stream.erb
refine-rails-2.11.2 app/views/refine/blueprints/create.turbo_stream.erb
refine-rails-2.11.1 app/views/refine/blueprints/create.turbo_stream.erb
refine-rails-2.11.0 app/views/refine/blueprints/create.turbo_stream.erb
refine-rails-2.10.1 app/views/refine/blueprints/create.turbo_stream.erb
refine-rails-2.10.0 app/views/refine/blueprints/create.turbo_stream.erb
refine-rails-2.9.14 app/views/refine/blueprints/create.turbo_stream.erb
refine-rails-2.9.13 app/views/refine/blueprints/create.turbo_stream.erb
refine-rails-2.9.12 app/views/refine/blueprints/create.turbo_stream.erb
refine-rails-2.9.11 app/views/refine/blueprints/create.turbo_stream.erb
refine-rails-2.9.10 app/views/refine/blueprints/create.turbo_stream.erb