1$(function () { 2 addCheckedClassToRadioOrCheckboxParent(); 3 autoWidthLanguageSelect(); 4}); 5 6function addCheckedClassToRadioOrCheckboxParent() { 7 $('[type="radio"]:checked, [type="checkbox"]:checked').each(function () { 8 $(this).closest(".radio").addClass("checked"); 9 $(this).closest(".checkbox").addClass("checked"); 10 }); 11 12 $(document).on("change", "[type=radio]", function () { 13 $(":radio[name='" + this.name + "']:not(:checked)").closest(".radio").removeClass('checked'); 14 $(this).closest(".radio").addClass("checked"); 15 }); 16 17 $(document).on("change", "[type=checkbox]", function () { 18 if (this.checked) { 19 $(this).closest(".checkbox").addClass("checked"); 20 } 21 else { 22 $(this).closest(".checkbox").removeClass("checked"); 23 } 24 }); 25} 26 27function autoWidthLanguageSelect() { 28 var text = $("#Culture").find("option:selected").text(); 29 var fake = $("<select/>").append($("<option/>").text(text)); 30 $("#Culture").after(fake); 31 $("#Culture").width(fake.outerWidth(true)); 32 fake.remove(); 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.