Sha256: 56322f84b172673ba56dbb8e31300fc6d9cd7647caae14649d98a27880ee1899

Contents?: true

Size: 503 Bytes

Versions: 2

Compression:

Stored size: 503 Bytes

Contents

jQuery('#preview_container').html('<%= escape_javascript( render('admin/product_groups/preview') ) %>');
<% notice = flash[:notice] %>
<% flash.delete(:notice) %>
flash_notice = jQuery('.flash.notice');
if (flash_notice.length > 0) {
  flash_notice.html('<%= notice %>');
} else {
  jQuery('#content h1').before('<div class="flash notice"><%= notice %></div>');
}

//set form action in case permalink changes
jQuery('form#product-group-form').attr('action', '<%= url_for([:admin, @product_group]) %>');

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
spree_core-0.70.0.rc2 app/views/admin/product_groups/update.js.erb
spree_core-0.70.RC1 app/views/admin/product_groups/update.js.erb