1$(".service_form #model").change(function () { 2 var val=$(this).val(); 3 if(val!=0) { 4 $('.service_form #modification').find('option:not(:first)').remove(); 5 BX.ajax.get( 6 "/ajax/get_modif_service.php", 7 { 8 model_id:val, 9 type: 'model' 10 }, 11 function( data ) { 12 var data = jQuery.parseJSON(data); 13 //$('.service_form #modification').append('<option value="0">Шаг 2. ÐÑбеÑиÑе модиÑикаÑиÑ</option>'); 14 $(".service_form #modification").removeAttr('disabled'); 15 for(var i=0; i<data.length; i++){ 16 var id=data[i].id; 17 var name=data[i].name; 18 $('.service_form #modification').append('<option value='+id+'>'+name+'</option>'); 19 } 20 }); 21 } 22}); 23 24 25 26$(".service_form #modification").change(function () { 27 var val=$(this).val(); 28 if(val!=0) { 29 $('.service_form #servlist').find('option:not(:first)').remove(); 30 BX.ajax.get( 31 "/ajax/get_modif_service.php", 32 { 33 modification_id:val, 34 type: 'modification' 35 }, 36 function( data ) { 37 var data = jQuery.parseJSON(data); 38 //$('.service_form #servlist').append('<option value="0">Шаг 3. ÐÑбеÑиÑе ÑÑлÑгÑ</option>'); 39 $(".service_form #servlist").removeAttr('disabled'); 40 for(var i=0; i<data.length; i++){ 41 var id=data[i].id; 42 var name=data[i].name; 43 var sect_url=data[i].sect_url; 44 $('.service_form #servlist').append('<option value="'+id+'">'+name+'</option>'); 45 } 46 }); 47 48 } 49}); 50 51 52 53$(".service_form #servlist").change(function () { 54 var val=$(this).val(); 55 if(val!=0) { 56 $('.service_form #elemlist').find('option:not(:first)').remove(); 57 BX.ajax.get( 58 "/ajax/get_modif_service.php", 59 { 60 symptom_id:val, 61 type: 'symptom' 62 }, 63 function( data ) { 64 var data = jQuery.parseJSON(data); 65 66 //$('.service_form #elemlist').append('<option value="0">Шаг 4. ÐÑбеÑиÑе ÑимпÑом</option>'); 67 $(".service_form #elemlist").removeAttr('disabled'); 68 for(var i=0; i<data.length; i++){ 69 var id=data[i].id; 70 var name=data[i].name; 71 var price=data[i].price; 72 var DETAIL_PAGE_URL=data[i].DETAIL_PAGE_URL; 73 $('.service_form #elemlist').append('<option data-url="'+DETAIL_PAGE_URL+'" value="'+price+'">'+name+'</option>'); 74 $('#order-service-form .subject').val('http://mercedes-pro.ru'+DETAIL_PAGE_URL); 75 } 76 }); 77 78 } 79}); 80 81 82 83 84 85 86$(".service_form #elemlist").change(function () { 87 $(".submit").removeAttr('disabled'); 88 var price = $('.service_form #elemlist').val(); 89 var DETAIL_PAGE_URL = $('.service_form #elemlist option:selected').data('url'); 90 $('#spoiler-price .main-cena .price').html(price); 91 $('#spoiler-price .btn.dark-btn').attr('href', DETAIL_PAGE_URL); 92 //$("#spoiler-price .buttons-block").html("<button class='btn' type='button' data-toggle='modal' data-target='#order-service-form'>ÐапиÑаÑÑÑÑ Ð½Ð° ÑемонÑ</button> <a class='btn dark-btn' href='"+DETAIL_PAGE_URL+"'>ÑзнайÑе подÑобноÑÑи</a>"); 93}); 94 95$('.button-cena.submit').click(function() { 96 $("#spoiler-price").slideDown(); 97 return false; 98}); 99 100 101 102 103 104 105
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.