1 2//overwrite um bei Geburtstagen mit der View year zu starten 3function initDatePicker(selector, minDate, maxDate, forceParse) 4{ 5 if($(selector).parents('.date').datepicker != undefined) 6 { 7 $(selector).parents('.date').datepicker('remove'); 8 } 9 10 if($(selector).attr('id') === "birthday") 11 { 12 var fullDate = createDate(maxDate); 13 var twoDigitMonth = fullDate.getMonth() + ""; 14 if (twoDigitMonth.length == 1) 15 twoDigitMonth = "0" + twoDigitMonth; 16 var twoDigitDate = fullDate.getDate() + ""; 17 if (twoDigitDate.length == 1) 18 twoDigitDate = "0" + twoDigitDate; 19 var endYear = fullDate.getFullYear() + 1; 20 21 $(selector).parents('.date').datepicker({ 22 format: 'dd.mm.yyyy', 23 language: 'de', 24 autoclose: true, 25 todayHighlight: true, 26 startDate: createDate(minDate), 27 endDate: createDate(maxDate), 28 defaultViewDate: { 29 year: endYear, 30 month: twoDigitMonth, 31 day: twoDigitDate 32 }, 33 startView: 2, 34 forceParse: forceParse, 35 orientation: 'auto' 36 }); 37 } 38 else 39 { 40 $(selector).parents('.date').datepicker({ 41 format: 'dd.mm.yyyy', 42 language: 'de', 43 autoclose: true, 44 todayHighlight: true, 45 startDate: createDate(minDate), 46 endDate: createDate(maxDate), 47 forceParse: forceParse, 48 orientation: 'auto' 49 }); 50 } 51 $(selector).parent().find('.btn-calendar').click(function(){ 52 $(selector).focus(); 53 }); 54 55 formatDateInputWithDots('.input-group.date > input'); 56} 57 58/*im AX soll die Methode keine zusätzlichen html-Elemente erzeigen*/ 59jQuery.fn.selectpicker = function(options) { 60 console.log("Dies ist die lokal überschriebene selectpicker()-Methode!"); 61}; 62 63$(document).ready(function () 64{ 65 66 $('.btn-calendar').click(function(){ 67 $(this).parent('.input-group-text').prev('.input-date').focus(); 68 }); 69 $('.form-floating > .form-control').on("input", function(){ 70 if($(this).val().length != 0) { 71 $(this).next('label').addClass('form-filled'); 72 } 73 else { 74 $(this).next('label').removeClass('form-filled'); 75 } 76 }); 77 78 setTimeout(function() { 79 $('#login').next('label').addClass('form-filled'); 80 $('#password').next('label').addClass('form-filled'); 81 }, 100); 82 83 $('.content-switch-cell').on('click', function (){ 84 $(this).find('span').trigger('click'); 85 }) 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.