From fc1061b55635f4d32f4fd50ba2bc52eeaf6e6628 Mon Sep 17 00:00:00 2001 From: Franck Allimant Date: Tue, 10 Jun 2014 16:01:38 +0200 Subject: [PATCH] Coupon type template framgment may define a couponInputFormSetup JS function --- templates/backOffice/default/assets/js/coupon.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/templates/backOffice/default/assets/js/coupon.js b/templates/backOffice/default/assets/js/coupon.js index a22a968c6..dae6d9574 100644 --- a/templates/backOffice/default/assets/js/coupon.js +++ b/templates/backOffice/default/assets/js/coupon.js @@ -235,6 +235,14 @@ $(function($){ } }).done(function(data) { inputsDiv.html(data); + + // Invoke coupon setup funtion, if any + try { + couponInputFormSetup(); + } + catch (ex) { + // Ignore the error + } }); };