Sha256: 6175d86d971e6bb73422d15c02972724e9e3df4c0a31ca54d6990a4f0548a9e0

Contents?: true

Size: 494 Bytes

Versions: 4

Compression:

Stored size: 494 Bytes

Contents

$('#preview_container').html('<%= escape_javascript( render('spree/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 {
  $('#content h1').before('<div class="flash notice"><%= notice %></div>');
}

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
spree_core-1.0.0.rc4 app/views/spree/admin/product_groups/update.js.erb
spree_core-1.0.0.rc3 app/views/spree/admin/product_groups/update.js.erb
spree_core-1.0.0.rc2 app/views/spree/admin/product_groups/update.js.erb
spree_core-1.0.0.rc1 app/views/spree/admin/product_groups/update.js.erb