Sha256: 90471d472e8356dae142a768889a5fe5139cc667e8b246d3f7638c5e151f187f

Contents?: true

Size: 760 Bytes

Versions: 8

Compression:

Stored size: 760 Bytes

Contents

<% rtc_controller_name = params[:rtc_controller_name].presence || controller_name %>
<% controller_name_singular = rtc_controller_name.singularize %>
<% @controller_name = instance_variable_get("@#{controller_name_singular}") %>

var $new_item = $('<%= j(render :partial => params[:rtc_partial].presence || controller_name_singular, locals: {"#{(params[:rtc_partial].presence || controller_name_singular).split('/').last}".to_sym => @controller_name}) %>').st_formatRow().addClass('updated');
$('.lvr_entry_edited').after($new_item).remove();
$('.lvr_entry_edited').removeClass('lvr_entry_edited');

$('.modal').modal('hide');

showGlobalNotification('<%= flash[:notice] %>', {type: SUCCESS});


<% flash[:error].try(:clear) %>
<% flash[:notice].try(:clear) %>

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
rich_table_component-0.0.9 app/views/application/update.js.erb
rich_table_component-0.0.8 app/views/application/update.js.erb
rich_table_component-0.0.7 app/views/application/update.js.erb
rich_table_component-0.0.6 app/views/application/update.js.erb
rich_table_component-0.0.5 app/views/application/update.js.erb
rich_table_component-0.0.4 app/views/application/update.js.erb
rich_table_component-0.0.3 app/views/application/update.js.erb
rich_table_component-0.0.2 app/views/application/update.js.erb