[-] FO : fixed bug #PSCFV-5980 && added 'js=1' in tpl when string is in script tag
This commit is contained in:
@@ -42,7 +42,7 @@
|
||||
}
|
||||
$(function()
|
||||
{
|
||||
var errorTitle = '{/literal}{if $errors|@count > 1}{l s='There are %d errors:' sprintf=$errors|@count}{else}{l s='There is %d error:' sprintf=$errors|@count}{/if}{literal}';
|
||||
var errorTitle = '{/literal}{if $errors|@count > 1}{l s='There are %d errors:' js=1 sprintf=$errors|@count}{else}{l s='There is %d error:' js=1 sprintf=$errors|@count}{/if}{literal}';
|
||||
var errorMessage = '<ol>';
|
||||
{/literal}
|
||||
{foreach from=$errors key=k item=error}
|
||||
|
||||
@@ -52,20 +52,20 @@
|
||||
var countriesNeedZipCode = new Array();
|
||||
var vat_management = {$vat_management|intval};
|
||||
|
||||
var txtWithTax = "{l s='(tax incl.)'}";
|
||||
var txtWithoutTax = "{l s='(tax excl.)'}";
|
||||
var txtHasBeenSelected = "{l s='has been selected'}";
|
||||
var txtNoCarrierIsSelected = "{l s='No carrier has been selected'}";
|
||||
var txtNoCarrierIsNeeded = "{l s='No carrier is needed for this order'}";
|
||||
var txtConditionsIsNotNeeded = "{l s='No terms of service must be accepted'}";
|
||||
var txtTOSIsAccepted = "{l s='Terms of Service have been accepted'}";
|
||||
var txtTOSIsNotAccepted = "{l s='Terms of service have not been accepted'}";
|
||||
var txtThereis = "{l s='There is'}";
|
||||
var txtErrors = "{l s='error(s)'}";
|
||||
var txtDeliveryAddress = "{l s='Delivery address'}";
|
||||
var txtInvoiceAddress = "{l s='Invoice address'}";
|
||||
var txtModifyMyAddress = "{l s='Modify my address'}";
|
||||
var txtInstantCheckout = "{l s='Instant checkout'}";
|
||||
var txtWithTax = "{l s='(tax incl.)' js=1}";
|
||||
var txtWithoutTax = "{l s='(tax excl.)' js=1}";
|
||||
var txtHasBeenSelected = "{l s='has been selected' js=1}";
|
||||
var txtNoCarrierIsSelected = "{l s='No carrier has been selected' js=1}";
|
||||
var txtNoCarrierIsNeeded = "{l s='No carrier is needed for this order' js=1}";
|
||||
var txtConditionsIsNotNeeded = "{l s='No terms of service must be accepted' js=1}";
|
||||
var txtTOSIsAccepted = "{l s='Terms of Service have been accepted' js=1}";
|
||||
var txtTOSIsNotAccepted = "{l s='Terms of service have not been accepted' js=1}";
|
||||
var txtThereis = "{l s='There is' js=1}";
|
||||
var txtErrors = "{l s='error(s)' js=1}";
|
||||
var txtDeliveryAddress = "{l s='Delivery address' js=1}";
|
||||
var txtInvoiceAddress = "{l s='Invoice address' js=1}";
|
||||
var txtModifyMyAddress = "{l s='Modify my address' js=1}";
|
||||
var txtInstantCheckout = "{l s='Instant checkout' js=1}";
|
||||
var errorCarrier = "{$errorCarrier}";
|
||||
var errorTOS = "{$errorTOS}";
|
||||
var checkedCarrier = "{if isset($checked)}{$checked}{else}0{/if}";
|
||||
|
||||
@@ -67,9 +67,9 @@
|
||||
var currencyRate = '{$currencyRate|floatval}';
|
||||
var currencyFormat = '{$currencyFormat|intval}';
|
||||
var currencyBlank = '{$currencyBlank|intval}';
|
||||
var txtProduct = "{l s='product'}";
|
||||
var txtProducts = "{l s='products'}";
|
||||
var txtSelectAnAddressFirst = "{l s='Please start by selecting an address'}";
|
||||
var txtProduct = "{l s='product' js=1}";
|
||||
var txtProducts = "{l s='products' js=1}";
|
||||
var txtSelectAnAddressFirst = "{l s='Please start by selecting an address' js=1}";
|
||||
{/if}
|
||||
|
||||
var formatedAddressFieldsValuesList = new Array();
|
||||
@@ -112,7 +112,7 @@
|
||||
dest_comp.html('');
|
||||
|
||||
li_content['title'] = adr_titles_vals[address_type];
|
||||
li_content['update'] = '<a href="{$link->getPageLink('address', true, NULL, "id_address")}'+id_address+'&back=order?step=1{if $back}&mod={$back}{/if}" title="{l s='Update'}">{l s='Update'}</a>';
|
||||
li_content['update'] = '<a href="{$link->getPageLink('address', true, NULL, "id_address")}'+id_address+'&back=order?step=1{if $back}&mod={$back}{/if}" title="{l s='Update' js=1}">{l s='Update' js=1}</a>';
|
||||
|
||||
appendAddressList(dest_comp, li_content, ordered_fields_name);
|
||||
}
|
||||
|
||||
@@ -71,8 +71,8 @@
|
||||
var currencyRate = '{$currencyRate|floatval}';
|
||||
var currencyFormat = '{$currencyFormat|intval}';
|
||||
var currencyBlank = '{$currencyBlank|intval}';
|
||||
var txtProduct = "{l s='product'}";
|
||||
var txtProducts = "{l s='products'}";
|
||||
var txtProduct = "{l s='product' js=1}";
|
||||
var txtProducts = "{l s='products' js=1}";
|
||||
{/if}
|
||||
|
||||
var addressMultishippingUrl = "{$link->getPageLink('address', true, NULL, "back={$back_order_page}?step=1{'&multi-shipping=1'|urlencode}{if $back}&mod={$back|urlencode}{/if}")}";
|
||||
@@ -99,8 +99,8 @@
|
||||
function getAddressesTitles()
|
||||
{
|
||||
return {
|
||||
'invoice': "{l s='Your billing address'}",
|
||||
'delivery': "{l s='Your delivery address'}"
|
||||
'invoice': "{l s='Your billing address' js=1}",
|
||||
'delivery': "{l s='Your delivery address' js=1}"
|
||||
};
|
||||
|
||||
}
|
||||
@@ -118,7 +118,7 @@
|
||||
dest_comp.html('');
|
||||
|
||||
li_content['title'] = adr_titles_vals[address_type];
|
||||
li_content['update'] = '<a href="{$link->getPageLink('address', true, NULL, "id_address")}'+id_address+'&back={$back_order_page}?step=1{if $back}&mod={$back}{/if}" title="{l s='Update'}">» {l s='Update'}</a>';
|
||||
li_content['update'] = '<a href="{$link->getPageLink('address', true, NULL, "id_address")}'+id_address+'&back={$back_order_page}?step=1{if $back}&mod={$back}{/if}" title="{l s='Update' js=1}">» {l s='Update' js=1}</a>';
|
||||
|
||||
appendAddressList(dest_comp, li_content, ordered_fields_name);
|
||||
}
|
||||
|
||||
@@ -30,8 +30,8 @@
|
||||
var currencyRate = '{$currencyRate|floatval}';
|
||||
var currencyFormat = '{$currencyFormat|intval}';
|
||||
var currencyBlank = '{$currencyBlank|intval}';
|
||||
var txtProduct = "{l s='product'}";
|
||||
var txtProducts = "{l s='products'}";
|
||||
var txtProduct = "{l s='product' js=1}";
|
||||
var txtProducts = "{l s='products' js=1}";
|
||||
var orderUrl = '{$link->getPageLink("order", true)}';
|
||||
|
||||
var msg = "{l s='You must agree to the terms of service before continuing.' js=1}";
|
||||
|
||||
@@ -57,21 +57,21 @@
|
||||
var countriesNeedZipCode = new Array();
|
||||
var vat_management = {$vat_management|intval};
|
||||
|
||||
var txtWithTax = "{l s='(tax incl.)'}";
|
||||
var txtWithoutTax = "{l s='(tax excl.)'}";
|
||||
var txtHasBeenSelected = "{l s='has been selected'}";
|
||||
var txtNoCarrierIsSelected = "{l s='No carrier has been selected'}";
|
||||
var txtNoCarrierIsNeeded = "{l s='No carrier is needed for this order'}";
|
||||
var txtConditionsIsNotNeeded = "{l s='No terms of service must be accepted'}";
|
||||
var txtTOSIsAccepted = "{l s='Terms of Service have been accepted'}";
|
||||
var txtTOSIsNotAccepted = "{l s='Terms of service have not been accepted'}";
|
||||
var txtThereis = "{l s='There is'}";
|
||||
var txtErrors = "{l s='error(s)'}";
|
||||
var txtDeliveryAddress = "{l s='Delivery address'}";
|
||||
var txtInvoiceAddress = "{l s='Invoice address'}";
|
||||
var txtModifyMyAddress = "{l s='Modify my address'}";
|
||||
var txtInstantCheckout = "{l s='Instant checkout'}";
|
||||
var txtSelectAnAddressFirst = "{l s='Please start by selecting an address'}";
|
||||
var txtWithTax = "{l s='(tax incl.)' js=1}";
|
||||
var txtWithoutTax = "{l s='(tax excl.)' js=1}";
|
||||
var txtHasBeenSelected = "{l s='has been selected' js=1}";
|
||||
var txtNoCarrierIsSelected = "{l s='No carrier has been selected' js=1}";
|
||||
var txtNoCarrierIsNeeded = "{l s='No carrier is needed for this order' js=1}";
|
||||
var txtConditionsIsNotNeeded = "{l s='No terms of service must be accepted' js=1}";
|
||||
var txtTOSIsAccepted = "{l s='Terms of Service have been accepted' js=1}";
|
||||
var txtTOSIsNotAccepted = "{l s='Terms of service have not been accepted' js=1}";
|
||||
var txtThereis = "{l s='There is' js=1}";
|
||||
var txtErrors = "{l s='error(s)' js=1}";
|
||||
var txtDeliveryAddress = "{l s='Delivery address' js=1}";
|
||||
var txtInvoiceAddress = "{l s='Invoice address'}" js=1;
|
||||
var txtModifyMyAddress = "{l s='Modify my address' js=1}";
|
||||
var txtInstantCheckout = "{l s='Instant checkout' js=1}";
|
||||
var txtSelectAnAddressFirst = "{l s='Please start by selecting an address' js=1}";
|
||||
var errorCarrier = "{$errorCarrier}";
|
||||
var errorTOS = "{$errorTOS}";
|
||||
var checkedCarrier = "{if isset($checked)}{$checked}{else}0{/if}";
|
||||
|
||||
@@ -30,8 +30,8 @@
|
||||
var currencyRate = '{$currencyRate|floatval}';
|
||||
var currencyFormat = '{$currencyFormat|intval}';
|
||||
var currencyBlank = '{$currencyBlank|intval}';
|
||||
var txtProduct = "{l s='product'}";
|
||||
var txtProducts = "{l s='products'}";
|
||||
var txtProduct = "{l s='product' js=1}";
|
||||
var txtProducts = "{l s='products' js=1}";
|
||||
// ]]>
|
||||
</script>
|
||||
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
<script type="text/javascript" src="{$smarty.const._PS_JS_DIR_}jquery/plugins/jquery.scrollTo.js"></script>
|
||||
<script type="text/javascript" src="{$smarty.const._PS_JS_DIR_}jquery/plugins/jquery.serialScroll.js"></script>
|
||||
<script type="text/javascript">// <![CDATA[
|
||||
i18n_scene_close = '{l s='Close'}';
|
||||
i18n_scene_close = '{l s='Close' js=1}';
|
||||
$(function () {ldelim}
|
||||
li_width = parseInt({$thumbSceneImageType.width} + 10);
|
||||
{rdelim});
|
||||
|
||||
@@ -48,8 +48,8 @@
|
||||
var currencyRate = '{$currencyRate|floatval}';
|
||||
var currencyFormat = '{$currencyFormat|intval}';
|
||||
var currencyBlank = '{$currencyBlank|intval}';
|
||||
var txtProduct = "{l s='product'}";
|
||||
var txtProducts = "{l s='products'}";
|
||||
var txtProduct = "{l s='product' js=1}";
|
||||
var txtProducts = "{l s='products' js=1}";
|
||||
var deliveryAddress = {$cart->id_address_delivery|intval};
|
||||
// ]]>
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user