Sha256: 080686a6caf5b11536fdcebdd0a1e88fe8043860e68bb4438a21f3ed9a32a873

Contents?: true

Size: 997 Bytes

Versions: 10

Compression:

Stored size: 997 Bytes

Contents

try {
<% insert_at ||= :top %>
<%= render :partial => 'update_messages', :locals => {:messages_id => active_scaffold_messages_id} %>
<% if controller.send :successful? %>
  <% if (active_scaffold_config.duplicate.refresh_list) %>
    <%= render :partial => 'refresh_list' %>
  <% else %>
    <% new_row = render :partial => 'list_record', :locals => {:record => @record} %>
    ActiveScaffold.create_record_row('<%= active_scaffold_id %>','<%= escape_javascript(new_row) %>', <%= {:insert_at => insert_at}.to_json.html_safe %>);
    <%= render :partial => 'update_calculations', :formats => [:js] %>
  <% end %>
  <% if (active_scaffold_config.duplicate.action_after_clone) %>
    var link = ActiveScaffold.find_action_link('<%= action_link_id active_scaffold_config.duplicate.action_after_clone, @record.id %>');
    if (link) (function() { link.open() })<%= '.defer' if ActiveScaffold.js_framework == :prototype %>();
  <% end %>
<% end %>
} catch (e) { alert('RJS error:\n\n' + e.toString());}

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
active_scaffold_duplicate-1.2.0 app/views/active_scaffold_overrides/duplicate.js.erb
active_scaffold_duplicate-1.1.4 app/views/active_scaffold_overrides/duplicate.js.erb
active_scaffold_duplicate-1.1.3 app/views/active_scaffold_overrides/duplicate.js.erb
active_scaffold_duplicate-1.1.2 app/views/active_scaffold_overrides/duplicate.js.erb
active_scaffold_duplicate-1.1.1 app/views/active_scaffold_overrides/duplicate.js.erb
active_scaffold_duplicate-1.1.0 app/views/active_scaffold_overrides/duplicate.js.erb
active_scaffold_duplicate-1.0.3 app/views/active_scaffold_overrides/duplicate.js.erb
active_scaffold_duplicate-1.0.2 app/views/active_scaffold_overrides/duplicate.js.erb
active_scaffold_duplicate-1.0.1 app/views/active_scaffold_overrides/duplicate.js.erb
active_scaffold_duplicate-1.0.0 app/views/active_scaffold_overrides/duplicate.js.erb