Skip to content

Commit b163f28

Browse files
peterberkenboschromul
authored andcommitted
fixed javascript error on Variant index. There was some Element.hide and Element.show left behind. Replaced with jQuery call.
1 parent 047e674 commit b163f28

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/views/admin/variants/index.html.erb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@
5757
{:url => new_admin_product_variant_url(@product),
5858
:method => :get,
5959
:update => "variants",
60-
:before => "Element.hide('new_var_link');Element.show('busy_indicator')",
61-
:complete => "Element.hide('busy_indicator')"}, :class => 'iconlink' %>
60+
:before => "$('#new_var_link').hide();$('#busy_indicator').show();",
61+
:complete => "$('#busy_indicator').hide();"}, :class => 'iconlink' %>
6262
</span>&nbsp;|&nbsp;<%= link_to @deleted.blank? ? t("show_deleted") : t("show_active"), admin_product_variants_url(@product, :deleted => @deleted.blank? ? "on" : "off") %>
6363
</p>
6464
<%= image_tag "spinner.gif", :plugin=>"spree", :style => "display:none", :id => 'busy_indicator' %>

0 commit comments

Comments
 (0)