Sha256: 2df4bff23da6cedc27bee415da856b8aff30c812de83d971528559ebf3c722ce
Contents?: true
Size: 913 Bytes
Versions: 1
Compression:
Stored size: 913 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}") %> <% partial = params[:rtc_partial].presence || controller_name_singular %> <% partial_variable = partial.split('/').last %> var $new_item = $('<%= j(render partial, partial_variable.to_sym => @controller_name, rtc_partial: partial_variable) %>').st_formatRow().addClass('created'); var $rtc = $('.rich_table_component.showing_new_form'); $rtc.removeClass('showing_new_form'); $rtc.find('.resizers').after($new_item); $rtc.find('.showing_new_form').removeClass('showing_new_form'); $rtc.find('.lvr_entry_edited').removeClass('lvr_entry_edited'); $rtc.find('.rtc_empty_message').remove(); $('.modal').modal('hide'); <% flash[:error].try(:clear) %> <% flash[:notice].try(:clear) %>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rich_table_component-0.0.10 | app/views/application/create.js.erb |