From 71a6497edb05f3bba7e624f04e22893d2fef8cff Mon Sep 17 00:00:00 2001 From: Franck Allimant Date: Tue, 10 Jun 2014 15:55:23 +0200 Subject: [PATCH] Added js=1 parameter toi {intl} calls used in javascript strings --- templates/backOffice/default/coupon-create.html | 6 +++--- templates/backOffice/default/coupon-update.html | 16 ++++++++++++---- 2 files changed, 15 insertions(+), 7 deletions(-) diff --git a/templates/backOffice/default/coupon-create.html b/templates/backOffice/default/coupon-create.html index d1a56e68b..e3b61a5d7 100644 --- a/templates/backOffice/default/coupon-create.html +++ b/templates/backOffice/default/coupon-create.html @@ -46,9 +46,9 @@ $(function($){ // Url alowing to get coupon inputs $.couponManager.urlAjaxAdminCouponDrawInputs = "{$urlAjaxAdminCouponDrawInputs}"; - $.couponManager.intlPleaseRetry = '{intl l='Something goes wrong, please try again.'}'; - $.couponManager.intlDoYouReallyWantToSetCouponAvailableForEveryOne = '{intl l='Do you really want to set this coupon available to everyone ?'}'; - $.couponManager.intlDoYouReallyWantToDeleteThisCondition = '{intl l='Do you really want to delete this condition ?'}'; + $.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 ?' js=1}'; + $.couponManager.intlDoYouReallyWantToDeleteThisCondition = '{intl l='Do you really want to delete this condition ?' js=1}'; }); diff --git a/templates/backOffice/default/coupon-update.html b/templates/backOffice/default/coupon-update.html index 3e93eeee2..03a6d08f2 100644 --- a/templates/backOffice/default/coupon-update.html +++ b/templates/backOffice/default/coupon-update.html @@ -53,12 +53,20 @@ $.couponManager.urlAjaxAdminCouponDrawInputs = '{$urlAjaxAdminCouponDrawInputs}'; $.couponManager.urlAjaxGetConditionInputFromServiceId = '{$urlAjaxGetConditionInputFromServiceId}'; $.couponManager.urlAjaxGetConditionInputFromConditionInterface = '{$urlAjaxGetConditionInputFromConditionInterface}'; - $.couponManager.intlPleaseRetry = '{intl l='Something goes wrong, please try again'}'; - $.couponManager.intlPleaseSelectAnotherCondition = '{intl l='Please select another condition'}'; - $.couponManager.intlDoYouReallyWantToSetCouponAvailableForEveryOne = '{intl l='Do you really want to set this coupon available to everyone ?'}'; - $.couponManager.intlDoYouReallyWantToDeleteThisCondition = '{intl l='Do you really want to delete this condition ?'}'; + $.couponManager.intlPleaseRetry = '{intl l='Something goes wrong, please try again' js=1}'; + $.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 ?' js=1}'; + $.couponManager.intlDoYouReallyWantToDeleteThisCondition = '{intl l='Do you really want to delete this condition ?' js=1}'; $('#condition-save-btn').hide(); + + // Invoke the coupon setup function if defined. + try { + couponInputFormSetup(); + } + catch (ex) { + // Ignore the error + } }); {/block}