Skip to content

Commit f6fd7b3

Browse files
luigifabfballiano
authored andcommitted
Fixed ESI parsing error with turpentine (#2682)
1 parent a3f6b53 commit f6fd7b3

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

app/design/frontend/base/default/template/customer/address.phtml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,12 @@
8080
<button type="button" onclick="window.location='<?php echo $this->getUrl('customer/address/form') ?>';" class="button"><span><span><?php echo $this->__('New Address') ?></span></span></button>
8181
</div>
8282
<script type="text/javascript">
83+
//<![CDATA[
8384
function deleteAddress(addressId) {
84-
if(confirm('<?php echo Mage::helper('core')->jsQuoteEscape($this->__('Are you sure you want to delete this address?')) ?>')) {
85-
window.location='<?php echo $this->getUrl("customer/address/delete") ?>address/'+addressId;
85+
if (confirm('<?php echo Mage::helper('core')->jsQuoteEscape($this->__('Are you sure you want to delete this address?')) ?>')) {
86+
window.location="<?php echo $this->getUrl('customer/address/delete') ?>address/"+addressId;
8687
}
8788
return false;
8889
}
90+
//]]>
8991
</script>

app/design/frontend/base/default/template/customer/address/book.phtml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,8 @@
9191
<script type="text/javascript">
9292
//<![CDATA[
9393
function deleteAddress(addressId) {
94-
if(confirm('<?php echo Mage::helper('core')->jsQuoteEscape($this->__('Are you sure you want to delete this address?')) ?>')) {
95-
window.location='<?php echo $this->getDeleteUrl() ?>id/'+addressId;
94+
if (confirm('<?php echo Mage::helper('core')->jsQuoteEscape($this->__('Are you sure you want to delete this address?')) ?>')) {
95+
window.location="<?php echo $this->getDeleteUrl() ?>id/"+addressId;
9696
}
9797
return false;
9898
}

0 commit comments

Comments
 (0)