<div id='' class='layer_wrapper_outer custservPopup'> <div id="layer_close_button"> <a href="#" class="closePopupLayer"><img title="close" src="/prj-front/assets/images/icons/icon-close-gallery.png" border="0" alt="close"/></a> </div> <div class="layer_wrapper_inner" id="popupToBoostrap" sqr-managed-content-manager="" request-path="" desktop-width="1025" tablet-width="1024" mobile-width="767"> <div id="jsAjaxRoot" class="layer_content_wrapper"> <div class="popup-body clearfix"> <input name="purchaserName" type="hidden" value="" autofillparam="ON"/><input name="recipientName" type="hidden" value="" autofillparam="ON"/><input name="recipientEmail" type="hidden" value="" autofillparam="ON"/><input name="recipientEmailConfirm" type="hidden" value="" autofillparam="ON"/><input name="purchaserMessage" type="hidden" value="" autofillparam="ON"/><input name="sourceURL" type="hidden" value="" autofillparam="ON"/><sqr-managed-content name="Terms Use - Popup" ></sqr-managed-content> </div> <script> $( document ).ready(function() { addResizeListener( $('.popup-body')[0], function(){ $.colorbox.resize(); //console.log("resize") } ); }); </script></div><!-- /layer_wrapper_inner --> </div><!-- /layer_wrapper_inner --> </div> <script type="text/javascript"> $(document).ready(function() { $(".ajaxFormSubmit").submit(function(e) { e.preventDefault(); $.ajax({ data:$(this).serialize(), url:$(this).attr("action"), type:$(this).attr("method") == undefined ? "GET" : $(this).attr("method"), dataType: "html", success:function(data){ writeDataIntoLayer(data); } }); return false; }); window.jsSourceURL = "#"; $('.formFieldContainer:not(.checkRadio)').each(function(i) { overLabels.init($(this)); }); // Attach sqr-managed-content bootstrapPopup("popupToBoostrap"); }); </script>