From: <cli...@gr...> - 2007-05-29 15:04:50
|
Author: cliberty Date: 2007-05-29 08:04:45 -0700 (Tue, 29 May 2007) New Revision: 1722 Modified: versions/1.0/trunk/crmsfa/webapp/crmsfa/orders/entry/crmsfaQuickCheckout.ftl Log: JS null element fix in CRMSFA checkout Modified: versions/1.0/trunk/crmsfa/webapp/crmsfa/orders/entry/crmsfaQuickCheckout.ftl =================================================================== --- versions/1.0/trunk/crmsfa/webapp/crmsfa/orders/entry/crmsfaQuickCheckout.ftl 2007-05-28 15:14:00 UTC (rev 1721) +++ versions/1.0/trunk/crmsfa/webapp/crmsfa/orders/entry/crmsfaQuickCheckout.ftl 2007-05-29 15:04:45 UTC (rev 1722) @@ -226,10 +226,12 @@ var selectedCarrierAndMethod = shippingInfoInput.options[shippingInfoInput.selectedIndex].value; var thirdPartyContainer = dojo.byId('thirdPartyBillingDetails_' + shipGroupSeqId); - if (thirdPartyContainer != null && isShippable(shipGroupSeqId) && selectedCarrierAndMethod.match(new RegExp("^UPS\\^"))) { - thirdPartyContainer.style.display = 'block'; - } else { - thirdPartyContainer.style.display = 'none'; + if (thirdPartyContainer != null) { + if (isShippable(shipGroupSeqId) && selectedCarrierAndMethod.match(new RegExp("^UPS\\^"))) { + thirdPartyContainer.style.display = 'block'; + } else { + thirdPartyContainer.style.display = 'none'; + } } } |