Skip to content
This repository has been archived by the owner on Aug 30, 2018. It is now read-only.

Commit

Permalink
Fixed how strings are appended in ajax cart
Browse files Browse the repository at this point in the history
  • Loading branch information
cshold committed Jan 7, 2015
1 parent 7ea24a0 commit d28abcb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions assets/ajaxify.js.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ var ajaxifyShopify = (function(module, $) {
$modalOverlay.on('click', hideModal);

// Create a close modal button
$modalContainer.prepend('<button type="button" class="ajaxcart__close" title="{{ 'cart.general.close_cart' | t | json }}">{{ 'cart.general.close_cart' | t | json }}</button>');
$modalContainer.prepend('<button type="button" class="ajaxcart__close" title="' + {{ 'cart.general.close_cart' | t | json }} + '">' + {{ 'cart.general.close_cart' | t | json }} + '</button>');
$closeCart = $('.ajaxcart__close');
$closeCart.on('click', hideModal);

Expand Down Expand Up @@ -878,7 +878,7 @@ var ajaxifyShopify = (function(module, $) {
sizeDrawer(true);
}
// Create a close drawer button
$cartContainer.prepend('<button type="button" class="ajaxcart__close" title="{{ 'cart.general.close_cart' | t | json }} ">{{ 'cart.general.close_cart' | t | json }} </button>');
$cartContainer.prepend('<button type="button" class="ajaxcart__close" title="' + {{ 'cart.general.close_cart' | t | json }} + '">' + {{ 'cart.general.close_cart' | t | json }} + '</button>');
$closeCart = $('.ajaxcart__close');
$closeCart.on('click', hideDrawer);
break;
Expand Down

0 comments on commit d28abcb

Please sign in to comment.