Sha256: aa1cd96a35fb6f90f90c05bb9c4e3cd0afd01bc0c8896de104d7989c3b1e8d97

Contents?: true

Size: 491 Bytes

Versions: 1

Compression:

Stored size: 491 Bytes

Contents

page << render(:super, :locals => {:insert_at => :bottom})
unless nested? && (nested.belongs_to? || nested.has_one?)
  if ActiveScaffold.js_framework == :prototype
    page.sortable(*sort_params)
  elsif ActiveScaffold.js_framework == :jquery
    reorder_params = {}
    reorder_params[:eid] = params[:eid] unless params[:eid].blank?
    page << "ActiveScaffold.sortable('#{sort_params[0]}', #{controller_name.to_json}, #{reorder_params.to_json});"
  end if controller.send :successful?
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
active_scaffold_sortable_vho-3.0.0 frontends/default/views/on_create.js.rjs