1(function ($) { 2 'use strict'; 3 $(function () { 4 $(document).on('click', ".my-calendar-header a.mcajax, .my-calendar-footer a.mcajax", function (e) { 5 var calendar = $( this ).closest( '.mc-main' ); 6 var ref = calendar.attr('id'); 7 e.preventDefault(); 8 var link = $(this).attr('href'); 9 var height = $('.mc-main' ).height(); 10 $('#' + ref).html('<div class=\"mc-loading\"></div><div class=\"loading\" style=\"height:' + height + 'px\"><span class="screen-reader-text">Loading...</span></div>'); 11 $('#' + ref).load(link + ' #' + ref + ' > *', function () { 12 // functions to execute when new view loads. 13 // List view 14 if ( typeof(mclist) !== "undefined" && mclist == 'true' ) { 15 $('li.mc-events').children().not('.event-date').hide(); 16 $('li.current-day').children().show(); 17 } 18 // Grid view 19 if ( typeof(mcgrid) !== "undefined" && mcgrid == 'true' ) { 20 $('.calendar .calendar-event').children().not('.event-title').hide(); 21 } 22 // Mini view 23 if ( typeof(mcmini) !== "undefined" && mcmini == 'true' ) { 24 $('.mini .has-events').children().not('.trigger, .mc-date, .event-date').hide(); 25 } 26 // All views 27 $( '#' + ref ).attr('tabindex', '-1').focus(); 28 // Your Custom ajax load changes if needed 29 }); 30 }); 31 }); 32}(jQuery));
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.