1(function ($) { 2 'use strict'; 3 4 Drupal.behaviors.productJs = { 5 attach: function (context, setting) { 6 $("#allocation_portfolio_direct").hide(); 7 $("#organization_portfolio_direct").hide(); 8 $('#portfolio-sorting-direct').on('change', function () { 9 if (this.value == '0') { 10 $("#sector_portfolio_direct").show(); 11 } 12 else { 13 $("#sector_portfolio_direct").hide(); 14 } 15 if (this.value == '1') { 16 $("#allocation_portfolio_direct").show(); 17 } 18 else { 19 $("#allocation_portfolio_direct").hide(); 20 } 21 22 if (this.value == '2') { 23 $("#organization_portfolio_direct").show(); 24 } 25 else { 26 $("#organization_portfolio_direct").hide(); 27 } 28 }); 29 $("#allocation_portfolio_regular").hide(); 30 $("#organization_portfolio_regular").hide(); 31 $('#portfolio-sorting-regular').on('change', function () { 32 if (this.value == '0') { 33 $("#sector_portfolio_regular").show(); 34 } 35 else { 36 $("#sector_portfolio_regular").hide(); 37 } 38 if (this.value == '1') { 39 $("#allocation_portfolio_regular").show(); 40 } 41 else { 42 $("#allocation_portfolio_regular").hide(); 43 } 44 45 if (this.value == '2') { 46 $("#organization_portfolio_regular").show(); 47 } 48 else { 49 $("#organization_portfolio_regular").hide(); 50 } 51 }); 52 53 $(window).on("load", function () { 54 $("#sector_portfolio_direct").mCustomScrollbar({ 55 theme: "minimal" 56 }); 57 $("#allocation_portfolio_direct").mCustomScrollbar({ 58 theme: "minimal" 59 }); 60 $("#organization_portfolio_direct").mCustomScrollbar({ 61 theme: "minimal" 62 }); 63 $("#sector_portfolio_regular").mCustomScrollbar({ 64 theme: "minimal" 65 }); 66 $("#allocation_portfolio_regular").mCustomScrollbar({ 67 theme: "minimal" 68 }); 69 $("#organization_portfolio_regular").mCustomScrollbar({ 70 theme: "minimal" 71 }); 72 }); 73 function toggleIcon(e) { 74 $(e.target) 75 .prev('.panel-heading').toggleClass('panel-heading-active'); 76 $(e.target) 77 .prev('.panel-heading') 78 .find(".more-less") 79 .toggleClass('glyphicon-plus glyphicon-minus'); 80 } 81 $('.panel-group').on('hidden.bs.collapse', toggleIcon); 82 $('.panel-group').on('shown.bs.collapse', toggleIcon); 83 } 84 } 85})(jQuery); 86
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.