Added js=1 parameter toi {intl} calls used in javascript strings
This commit is contained in:
@@ -46,9 +46,9 @@
|
|||||||
$(function($){
|
$(function($){
|
||||||
// Url alowing to get coupon inputs
|
// Url alowing to get coupon inputs
|
||||||
$.couponManager.urlAjaxAdminCouponDrawInputs = "{$urlAjaxAdminCouponDrawInputs}";
|
$.couponManager.urlAjaxAdminCouponDrawInputs = "{$urlAjaxAdminCouponDrawInputs}";
|
||||||
$.couponManager.intlPleaseRetry = '{intl l='Something goes wrong, please try again.'}';
|
$.couponManager.intlPleaseRetry = '{intl l='Something goes wrong, please try again.' js=1}';
|
||||||
$.couponManager.intlDoYouReallyWantToSetCouponAvailableForEveryOne = '{intl l='Do you really want to set this coupon available to everyone ?'}';
|
$.couponManager.intlDoYouReallyWantToSetCouponAvailableForEveryOne = '{intl l='Do you really want to set this coupon available to everyone ?' js=1}';
|
||||||
$.couponManager.intlDoYouReallyWantToDeleteThisCondition = '{intl l='Do you really want to delete this condition ?'}';
|
$.couponManager.intlDoYouReallyWantToDeleteThisCondition = '{intl l='Do you really want to delete this condition ?' js=1}';
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
@@ -53,12 +53,20 @@
|
|||||||
$.couponManager.urlAjaxAdminCouponDrawInputs = '{$urlAjaxAdminCouponDrawInputs}';
|
$.couponManager.urlAjaxAdminCouponDrawInputs = '{$urlAjaxAdminCouponDrawInputs}';
|
||||||
$.couponManager.urlAjaxGetConditionInputFromServiceId = '{$urlAjaxGetConditionInputFromServiceId}';
|
$.couponManager.urlAjaxGetConditionInputFromServiceId = '{$urlAjaxGetConditionInputFromServiceId}';
|
||||||
$.couponManager.urlAjaxGetConditionInputFromConditionInterface = '{$urlAjaxGetConditionInputFromConditionInterface}';
|
$.couponManager.urlAjaxGetConditionInputFromConditionInterface = '{$urlAjaxGetConditionInputFromConditionInterface}';
|
||||||
$.couponManager.intlPleaseRetry = '{intl l='Something goes wrong, please try again'}';
|
$.couponManager.intlPleaseRetry = '{intl l='Something goes wrong, please try again' js=1}';
|
||||||
$.couponManager.intlPleaseSelectAnotherCondition = '{intl l='Please select another condition'}';
|
$.couponManager.intlPleaseSelectAnotherCondition = '{intl l='Please select another condition' js=1}';
|
||||||
$.couponManager.intlDoYouReallyWantToSetCouponAvailableForEveryOne = '{intl l='Do you really want to set this coupon available to everyone ?'}';
|
$.couponManager.intlDoYouReallyWantToSetCouponAvailableForEveryOne = '{intl l='Do you really want to set this coupon available to everyone ?' js=1}';
|
||||||
$.couponManager.intlDoYouReallyWantToDeleteThisCondition = '{intl l='Do you really want to delete this condition ?'}';
|
$.couponManager.intlDoYouReallyWantToDeleteThisCondition = '{intl l='Do you really want to delete this condition ?' js=1}';
|
||||||
|
|
||||||
$('#condition-save-btn').hide();
|
$('#condition-save-btn').hide();
|
||||||
|
|
||||||
|
// Invoke the coupon setup function if defined.
|
||||||
|
try {
|
||||||
|
couponInputFormSetup();
|
||||||
|
}
|
||||||
|
catch (ex) {
|
||||||
|
// Ignore the error
|
||||||
|
}
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
{/block}
|
{/block}
|
||||||
|
|||||||
Reference in New Issue
Block a user