Sha256: cd71a43248b72d50697f5bdbb4404fb90a04a3abd4e31ec0d120daa378e6641e
Contents?: true
Size: 990 Bytes
Versions: 2
Compression:
Stored size: 990 Bytes
Contents
try { var action_link; <% form_selector ||= "#{element_form_id(:action => :create)}" insert_at ||= :top always_show_create ||= active_scaffold_config.actions.include?(:list) && active_scaffold_config.list.always_show_create -%> <% if always_show_create -%> <%= render :partial => 'update_messages' %> <% else -%> action_link = ActiveScaffold.find_action_link('<%= form_selector %>'); if (action_link) action_link.update_flash_messages('<%= escape_javascript(render(:partial => 'messages')) %>'); <% end -%> <% if successful? -%> <%= render 'new_record', insert_at: insert_at %> <%= render 'refresh_create_form', always_show_create: always_show_create, form_selector: form_selector unless render_parent? %> <% else %> ActiveScaffold.replace('<%= form_selector %>','<%= escape_javascript(render(:partial => 'create_form', :locals => {:xhr => true})) %>'); ActiveScaffold.scroll_to('<%= form_selector %>', true); <% end %> } catch (e) { alert('RJS error:\n\n' + e.toString());}
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
active_scaffold-3.7.11 | app/views/active_scaffold_overrides/on_create.js.erb |
active_scaffold-3.7.10 | app/views/active_scaffold_overrides/on_create.js.erb |