1/* 2 * This file is part of the Sylius package. 3 * 4 * (c) PaweÅ JÄdrzejewski 5 * 6 * For the full copyright and license information, please view the LICENSE 7 * file that was distributed with this source code. 8 */ 9(function ( $ ) { 10 'use strict'; 11 12 $(document).ready(function() { 13 $('.variant-table-toggle .icon').toggle(function() { 14 $(this).removeClass('icon-chevron-down').addClass('icon-chevron-up'); 15 $(this).parent().parent().find('.table tbody').show(); 16 }, function() { 17 $(this).addClass('icon-chevron-down').removeClass('icon-chevron-up'); 18 $(this).parent().parent().find('.table tbody').hide(); 19 }); 20 21 $( document ).on("change", "#sylius-assortment-product-images input[type=file]", function() { 22 $(this).next().html($(this).val()); 23 }); 24 $('#sylius_taxonomy_file, #sylius_taxon_file').change(function() { 25 $('.file_name_alt').html($(this).val()); 26 }); 27 28 29 // remove hide class popin upload croppable image ( issue bootstrap3 doesnt remove "hide" class when "show") 30 $('.select-image-button .image_edit_button').click(function(event){ 31 $('#image_upload_modal').removeClass('hide'); 32 }); 33 34 35 //ancre property 36 37 $(document).on('click','.properties-generator > .row > div > ul > li > .checkbox > a',function(event){ 38 event.preventDefault(); 39 var property_id = $(this).attr('data-property-id'); 40 var target = $('.sylius-assortment-property_value[data-property-id="'+property_id+'"]'); 41 $('html,body').animate({ 42 scrollTop: target.offset().top 43 }, 1000); 44 }); 45 46 }); 47})( jQuery );
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.