diff --git a/app/views/admin/variants/index.html.erb b/app/views/admin/variants/index.html.erb index 1925728..1be3fb8 100755 --- a/app/views/admin/variants/index.html.erb +++ b/app/views/admin/variants/index.html.erb @@ -57,8 +57,8 @@ {:url => new_admin_product_variant_url(@product), :method => :get, :update => "variants", - :before => "Element.hide('new_var_link');Element.show('busy_indicator')", - :complete => "Element.hide('busy_indicator')"}, :class => 'iconlink' %> + :before => "$('#new_var_link').hide();$('#busy_indicator').show();", + :complete => "$('#busy_indicator').hide();"}, :class => 'iconlink' %>  | <%= link_to @deleted.blank? ? t("show_deleted") : t("show_active"), admin_product_variants_url(@product, :deleted => @deleted.blank? ? "on" : "off") %>

<%= image_tag "spinner.gif", :plugin=>"spree", :style => "display:none", :id => 'busy_indicator' %>