Sha256: ab94237c309251d0a7f19565e9091ef0310412f4a55d579528fb3923a8f61cb0

Contents?: true

Size: 461 Bytes

Versions: 1

Compression:

Stored size: 461 Bytes

Contents

<% current_order and current_order.update! # update to get correct total %>
// Refresh minicart count
$("#link-to-cart a").replaceWith('<%= escape_javascript link_to_cart %>')

// Refresh minicart line items
$("#minicart").replaceWith('<%= escape_javascript render("spree/shared/minicart") %>')

// Sliding down minicart
$("#link-to-cart #minicart").slideDown()

// Sliding up minicart
setTimeout(function () {
  $("#link-to-cart #minicart").slideUp()
},
5000);

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
spree_minicart-1.1.3 app/views/spree/orders/populate.js.erb