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

Fixed how strings are appended in ajax cart #310

Merged
merged 1 commit into from
Jan 7, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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