Sha256: a869f0c850d52e1e3937ea472fdf0a25097ebb027dff2194d39b873321c57bb5

Contents?: true

Size: 680 Bytes

Versions: 11

Compression:

Stored size: 680 Bytes

Contents

<%= turbo_stream.append_all "body" do %>
  <script>
    (function() {
      const event = new CustomEvent("filter-submit-success", {
        bubbles: true,
        detail: {
          stableId: <%= @refine_stable_id.to_json.html_safe %>,
          url: <%= @url_for_redirect.to_json.html_safe %>,
          formId: <%= @refine_client_id.to_json.html_safe %>
        }
      })
      document
        .getElementById(<%= "refine-inline-filter-#{@refine_client_id}".to_json.html_safe %>)
        .dispatchEvent(event)
    })()
  </script>
<% end %>

<%= turbo_stream.replace "refine-inline-filter-#{@refine_client_id}", partial: "refine/advanced_inline/filters/show", locals: {} %>

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
refine-rails-2.13.3 app/views/refine/advanced_inline/criteria/create.turbo_stream.erb
refine-rails-2.13.2 app/views/refine/advanced_inline/criteria/create.turbo_stream.erb
refine-rails-2.13.1 app/views/refine/advanced_inline/criteria/create.turbo_stream.erb
refine-rails-2.13.0 app/views/refine/advanced_inline/criteria/create.turbo_stream.erb
refine-rails-2.12.2 app/views/refine/advanced_inline/criteria/create.turbo_stream.erb
refine-rails-2.12.1 app/views/refine/advanced_inline/criteria/create.turbo_stream.erb
refine-rails-2.12.0 app/views/refine/advanced_inline/criteria/create.turbo_stream.erb
refine-rails-2.11.12 app/views/refine/advanced_inline/criteria/create.turbo_stream.erb
refine-rails-2.11.11 app/views/refine/advanced_inline/criteria/create.turbo_stream.erb
refine-rails-2.11.10 app/views/refine/advanced_inline/criteria/create.turbo_stream.erb
refine-rails-2.11.9 app/views/refine/advanced_inline/criteria/create.turbo_stream.erb