1function Plugin_Order_Status() { 2 var intern = this; 3 this.translate = {}; 4 5 jQuery(document).ready(function($){ 6 $('.js-order-status').each(function(){ 7 var el = $(this); 8 9 el.on('click', '.js-response .js-next', function(){ 10 jQuery(this).parents('ul[data-item]').removeClass('active').next('ul').addClass('active'); 11 }); 12 el.on('click', '.js-response .js-prev', function(){ 13 jQuery(this).parents('ul[data-item]').removeClass('active').prev('ul').addClass('active'); 14 }); 15 16 17 }); 18 19 /* 20 $('body').on('submit', '.js-order-status form', function(e){ 21 e.preventDefault(); 22 var el = $(this).parents('.js-order-status'); 23 var params = { 24 cid: $('input[name="cid"]').val(), 25 plz: $('input[name="plz"]').val(), 26 tracking_number: $('input[name="tracking_number"]').val() 27 }; 28 jQuery.ajax({ 29 type: 'POST', 30 url: functions_url+'?func=GetOrderStatus', 31 dataType: 'json', 32 data: {params: params}, 33 success: function(data) { 34 jQuery.ajax({ 35 type: 'POST', 36 data: { params: data.result }, 37 url: functions_url+'?func=renderOrderStatus', 38 async: false, 39 success: function (data) { 40 data = jQuery.parseJSON(data); 41 el.find('.js-request').hide(); 42 el.find('.js-response').html(data.result).show(); 43 el.find('.js-response .js-next').click(function(){ 44 jQuery(this).parents('ul[data-item]').removeClass('active').next('ul').addClass('active'); 45 }); 46 el.find('.js-response .js-prev').click(function(){ 47 jQuery(this).parents('ul[data-item]').removeClass('active').prev('ul').addClass('active'); 48 }); 49 } 50 }); 51 } 52 }); 53 }); 54 */ 55 56 $('body').on('submit', '.js-order-status form', function(e){ 57 e.preventDefault(); 58 var el = $(this).parents('.js-order-status'); 59 var params = { 60 cid: $('input[name="cid"]').val(), 61 tracking_number: $('input[name="tracking_number"]').val() 62 }; 63 jQuery.ajax({ 64 type: 'POST', 65 url: functions_url+'?func=sendOrderStatusMail', 66 dataType: 'json', 67 data: {params: params}, 68 success: function(data) { 69 70 } 71 }); 72 73 var text = ''; 74 switch(xLanguage) { 75 case 'de': 76 default: 77 text = "Du wirst in Kürze eine E-Mail mit weiteren Informationen zum Bestellstatus erhalten"; 78 break; 79 case 'en': 80 text = "You will receive an email shortly with more information about the order status"; 81 break; 82 case 'fr': 83 text = "Tu recevras sous peu un e-mail contenant de plus amples informations sur l'état de ta commande"; 84 break; 85 case 'nl': 86 text = "U ontvangt binnenkort een e-mail met meer informatie over de status van de bestelling"; 87 break; 88 case 'es': 89 text = "En breve recibirá un correo electrónico con más información sobre el estado del pedido"; 90 break; 91 case 'it': 92 text = "Riceverete a breve un'e-mail con ulteriori informazioni sullo stato dell'ordine"; 93 break; 94 } 95 jQuery.fancybox.open({ 96 src: '<div class="fancybox-content"><div class="wrap"><p>'+text+'</p></div></div>', 97 type: 'inline', 98 }); 99 }); 100 101 $(document).on('click', '.js-order-status .js-edit', function(){ 102 var cid = $(this).attr('data-cid'); 103 jQuery.fancybox.open({ 104 src: assets_url+'js/templates/change-address.php?cid='+cid+'&language='+xLanguage, 105 type: 'ajax', 106 touch: false 107 }); 108 }); 109 110 if (getParameterByName(window.location.href, 'order_no')) { 111 var cid = getParameterByName(window.location.href, 'order_no'); 112 var zip = getParameterByName(window.location.href, 'zip'); 113 jQuery('input[name="cid"]').val(cid); 114 jQuery('input[name="plz"]').val(zip); 115 jQuery('form[name="order-status"]').submit(); 116 } 117 118 if (getParameterByName(window.location.href, 'tracking_no')) { 119 var tracking_no = getParameterByName(window.location.href, 'tracking_no'); 120 jQuery('input[name="tracking_number"]').val(tracking_no); 121 jQuery('form[name="order-status"]').submit(); 122 } 123 }); 124 125 function getParameterByName(url, name) { 126 var match = RegExp('[?&]' + name + '=([^&]*)').exec(url); 127 return match && decodeURIComponent(match[1].replace(/\+/g, ' ')); 128 } 129 130 this.renderOrderStatus = function(data) { 131 el.find('.js-request').hide(); 132 el.find('.js-response').html(data).show(); 133 el.find('.js-response .js-next').click(function(){ 134 jQuery(this).parents('ul[data-item]').removeClass('active').next('ul').addClass('active'); 135 }); 136 el.find('.js-response .js-prev').click(function(){ 137 jQuery(this).parents('ul[data-item]').removeClass('active').prev('ul').addClass('active'); 138 }); 139 } 140 141 142} 143var xxlpix_app_plugin_order_status = new Plugin_Order_Status();
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.