1(function() { 2 jQuery(document).ready(function(){ 3 4 $('.optitime-calendar').find('.calendar-navigation a').click(function (event) { 5 var wrapper = $(this).closest('.optitime-calendar').addClass('is-loading'); 6 }); 7 8 $('.optitime-calendar .cal_btn_available').click(function(event) { 9 var parent = $(this).closest('.optitime-calendar'); 10 11 if(!parent.hasClass('is-clicked')) { 12 parent.addClass('is-clicked'); 13 $(this).addClass('is-loading'); 14 } else { 15 event.preventDefault(); 16 } 17 }); 18 19 var setupCalendar = function(element) { 20 var parent = element; 21 $(parent).parent('div').css({'min-height':$(parent).height()+'px'}); 22 23 var setupHandlers = function() { 24 $(parent).find('.calendar-navigation a').click(function (event) { 25 $(parent).addClass('is-loading'); 26 $.ajax({ 27 url: $(this).attr('data-ajax'), 28 }) 29 .done(function( data ) { 30 var newparent = $(parent).parent('div'); 31 $(newparent).empty(); 32 $(newparent).html(data); 33 setupCalendar($(newparent).children('.calendar-module')); 34 }); 35 event.preventDefault(); 36 }); 37 } 38 39 $(element).find('svg').each(function () { 40 var attr = $(this).attr('title'); 41 if (typeof attr === typeof undefined || attr === false) { 42 $(this).attr('title', ''); 43 } 44 }); 45 46 $(element).find('svg').tooltip({content: function() { 47 return $(this).find('title').text(); 48 }}); 49 50 setupHandlers(); 51 } 52 53 $('.calendar-module').each(function() { 54 setupCalendar(this); 55 }); 56 57 if($('#newtenant_stage3').length) { 58 var checkIfSecondaryAllowed = function() { 59 var secondaryValid = true; 60 61 $('#newtenant_stage3 input[type=radio]').each( function() { 62 var value = $("input:radio[name='"+$(this).attr('name')+"']:checked").val(); 63 if(typeof value === "undefined"||value==='disagree') { 64 secondaryValid = false; 65 } 66 }); 67 68 if(secondaryValid) { 69 $('#newtenant_stage3 .fh-button.no-visit').show(); 70 } else { 71 $('#newtenant_stage3 .fh-button.no-visit').hide(); 72 } 73 } 74 75 $('#newtenant_stage3 input[type=radio]').click(checkIfSecondaryAllowed); 76 77 checkIfSecondaryAllowed(); 78 79 80 } 81 }); 82}());
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.