1"use strict"; 2$(document).ready(function() { 3 4 if ($('.select2').length > 0) { 5 $('.select2').select2({ 6 width: '100%', 7 }); 8 } 9 10 if ($('#assign-driver-select').length > 0) { 11 $('#assign-driver-select').select2({ 12 width: '100%', 13 allowClear: true, 14 dropdownParent: $("#modal-asign-driver"), 15 }); 16 } 17 if ($('#time_to_prepare_select').length > 0) { 18 $('#time_to_prepare_select').select2({ 19 width: '100%', 20 allowClear: true, 21 dropdownParent: $("#modal-time-to-prepare"), 22 }); 23 } 24 if ($('#addressID').length > 0) { 25 $('#addressID').select2({ 26 width: '100%', 27 allowClear: true, 28 }); 29 } 30 if ($('#new_address_checkout').length > 0) { 31 $('#new_address_checkout').select2({ 32 dropdownParent: $("#modal-order-new-address"), 33 placeholder: "", 34 allowClear: true, 35 width: '100%', 36 ajax: { 37 url: '/new/address/autocomplete', 38 dataType: 'json', 39 data: function (params) { 40 return { 41 term: params.term, 42 page: params.page 43 }; 44 }, 45 processResults: function (data, params) { 46 params.page = params.page || 1; 47 48 return { 49 results: data.results, 50 pagination: { 51 more: (params.page * 10) < data.total 52 } 53 }; 54 }, 55 minimumInputLength: 3, 56 } 57 }); 58 } 59 60 $('.select2').addClass('form-control'); 61 $('.select2-selection').css('border','0'); 62 $('.select2-selection').css('margin-bottom','10px'); 63 $('.select2').css('padding-bottom','35px'); 64 $('.select2-selection__arrow').css('top','10px'); 65 $('.select2-selection__rendered').css('color','#8898aa'); 66});
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.