From 7b8627c53c15d40293f517512651f93bf192591e Mon Sep 17 00:00:00 2001 From: vAugagneur Date: Tue, 6 Mar 2012 13:30:24 +0000 Subject: [PATCH] [-] BO : #PSFV-587 - message about order and gift message does not display in BO when order is completed --- themes/default/js/order-opc.js | 31 ++++++++++++++++++------------- 1 file changed, 18 insertions(+), 13 deletions(-) diff --git a/themes/default/js/order-opc.js b/themes/default/js/order-opc.js index e0c4cb183..2000f02b5 100644 --- a/themes/default/js/order-opc.js +++ b/themes/default/js/order-opc.js @@ -33,7 +33,7 @@ function updateCarrierList(json) // html += json.HOOK_EXTRACARRIER; $('#carrier_area').replaceWith(html); - + bindInputs(); /* update hooks for carrier module */ $('#HOOK_BEFORECARRIER').html(json.HOOK_BEFORECARRIER); } @@ -578,6 +578,20 @@ $(function() { }); } + bindInputs(); + + $('#opc_account_form input,select,textarea').change(function() { + if ($(this).is(':visible')) + { + $('#opc_account_saved').fadeOut('slow'); + $('#submitAccount').show(); + } + }); + +}); + +function bindInputs() +{ // Order message update $('#message').blur(function() { $('#opc_delivery_methods-overlay').fadeIn('slow'); @@ -627,9 +641,9 @@ $(function() { $('p#gift_div').show(); else $('p#gift_div').hide(); - + // Gift message update - $('textarea#gift_message').blur(function() { + $('textarea#gift_message').change(function() { updateCarrierSelectionAndGift(); }); @@ -656,16 +670,7 @@ $(function() { } }); }); - - $('#opc_account_form input,select,textarea').change(function() { - if ($(this).is(':visible')) - { - $('#opc_account_saved').fadeOut('slow'); - $('#submitAccount').show(); - } - }); - -}); +} function multishippingMode(it) {