Sha256: e5dd1848fb11a97895a508f48037e2b3dddf7cfcb2d57f8bd5df08039840d855

Contents?: true

Size: 348 Bytes

Versions: 1

Compression:

Stored size: 348 Bytes

Contents

<% message = flash[:notice] %>
<% flash.delete(:notice) %>
<% alert = message.present? ? "alert('#{message}');" : '' %>

$("#page_modules_row_<%= @page_module.id %>").replaceWith("<%= escape_javascript(
  render(
    partial: 'page_modules/page_module', locals: { page_module: @page_module }
  ) 
) %>");
$('#modal').modal('hide');
<%= raw alert %>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
home_page-0.0.6 app/views/page_modules/update.js.erb