Sha256: 03de38abecf72fd7c5954b0706c8253de2a9ca3a42d6d1519467235bf59532b2

Contents?: true

Size: 562 Bytes

Versions: 20

Compression:

Stored size: 562 Bytes

Contents

<%= render(:super) %>
<%
# if we are currently editing a nested belongs_to association do not do any sorting stuff
unless nested_singular_association?
  if ActiveScaffold.js_framework == :prototype
%>
    <%= sortable_element_js(*sort_params) %>
<%
  elsif ActiveScaffold.js_framework == :jquery
    reorder_params = {}
    reorder_params[:eid] = params[:eid] unless params[:eid].blank?
%>
    <%= "ActiveScaffold.sortable('#{sort_params[0]}', #{controller_name.to_json}, #{reorder_params.to_json});".html_safe %>
<%
  end if controller.send :successful?
end
%>

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
active_scaffold_sortable-3.3.5 frontends/default/active_scaffold_overrides/on_update.js.erb~
active_scaffold_sortable-3.3.4 frontends/default/active_scaffold_overrides/on_update.js.erb~
active_scaffold_sortable-3.3.3 frontends/default/active_scaffold_overrides/on_update.js.erb~
active_scaffold_sortable-3.3.2 frontends/default/active_scaffold_overrides/on_update.js.erb~
active_scaffold_sortable-3.3.1 frontends/default/active_scaffold_overrides/on_update.js.erb~
active_scaffold_sortable-3.3.0 frontends/default/active_scaffold_overrides/on_update.js.erb~
active_scaffold_sortable-3.2.13 frontends/default/active_scaffold_overrides/on_update.js.erb~
active_scaffold_sortable-3.2.12 frontends/default/active_scaffold_overrides/on_update.js.erb~
active_scaffold_sortable-3.2.11 frontends/default/active_scaffold_overrides/on_update.js.erb~
active_scaffold_sortable-3.2.10 frontends/default/active_scaffold_overrides/on_update.js.erb~
active_scaffold_sortable-3.2.9 frontends/default/active_scaffold_overrides/on_update.js.erb~
active_scaffold_sortable-3.2.8 frontends/default/active_scaffold_overrides/on_update.js.erb~
active_scaffold_sortable-3.2.7 frontends/default/active_scaffold_overrides/on_update.js.erb~
active_scaffold_sortable-3.2.6 frontends/default/active_scaffold_overrides/on_update.js.erb~
active_scaffold_sortable-3.2.5 frontends/default/active_scaffold_overrides/on_update.js.erb~
active_scaffold_sortable-3.2.4 frontends/default/active_scaffold_overrides/on_update.js.erb~
active_scaffold_sortable-3.2.3 frontends/default/active_scaffold_overrides/on_update.js.erb~
active_scaffold_sortable-3.2.2 frontends/default/active_scaffold_overrides/on_update.js.erb~
active_scaffold_sortable-3.2.0 frontends/default/active_scaffold_overrides/on_update.js.erb~
active_scaffold_sortable-3.1.2 frontends/default/views/on_update.js.erb