1/** 2 * NOTICE OF LICENSE 3 * 4 * This source file is subject to the Software License Agreement 5 * that is bundled with this package in the file LICENSE.txt. 6 * 7 * @author Peter Sliacky (Zelarg) 8 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 9 */ 10 11tc_confirmOrderValidations['zasilkovna'] = function() { 12 if ( 13 $('#packetery-widget select[name=name]').is(':visible') && 14 !$('#packetery-widget select[name=name]').val() 15 ) { 16 var shippingErrorMsg = $('#thecheckout-shipping > .inner-area > .error-msg'); 17 shippingErrorMsg.show(); 18 scrollToElement(shippingErrorMsg); 19 return false; 20 } else { 21 return true; 22 } 23} 24 25checkoutShippingParser.zasilkovna = { 26 init_once: function (elements) { 27 28 }, 29 30 delivery_option: function (element) { 31 32 }, 33 34 extra_content: function (element) { 35 element.after("<script>\ 36 $(document).ready(function(){\ 37 if ('undefined' !== typeof initializePacketaWidget && $(\".zas-box\").length)\ 38 initializePacketaWidget();\ 39 if ('undefined' !== typeof tools){\ 40 tools.fixextracontent();\ 41 tools.readAjaxFields();\ 42 var zasilkovnaEl = $('.carrier-extra-content.zasilkovna');\ 43 if (zasilkovnaEl.length) {\ 44 var extra = zasilkovnaEl.parent();\ 45 packetery.widgetGetCities(extra);\ 46 }\ 47 }\ 48 });\ 49 </script>"); 50 } 51 52}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.