1 2ACC.warrantyService = { 3 4 _autoload: [ 5 "bindwarrantyService", 6 "bindActiveAccordion" 7 ], 8 bindwarrantyService: function(){ 9 $(document).on("click", "#warrantyLink", function(e) { 10 e.preventDefault(); 11 var formID = $(this).attr('data-formId'); 12 $('#' +formID).submit(); 13}); 14 15 }, 16 17 bindActiveAccordion: function(){ 18 if($('.js-activecontract-A').length){ 19 var defaultId = "#"+$('.js-default-accordion').data("id"); 20 defaultActive= $('.js-default-accordion').data("active"); 21 if(!defaultActive){ 22 $(defaultId).removeClass("in"); 23 $('a[href="' + defaultId + '"]').addClass("collapsed"); 24 } 25 $('.js-activecontract-A').each(function(){ 26 var activeId = "#"+$(this).data("id"); 27 $(activeId).addClass("in"); 28 $('a[href="' + activeId + '"]').removeClass("collapsed"); 29 }); 30 } 31 } 32}; 33
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.