1/* 2 * @plugin Tfbcalendar 3 * @since 1.0.0 4 */ 5 6jQuery( document ).ready( function( $ ) 7{ 8 var image = '<img src="' + wp_ajax.loading + '" alt="Loading ..." width="16" height="16" />'; 9 10 $('#events').on('click','.month-nav-btn', function(e){ 11 12 var data = { 13 action: 'query_events', 14 security: wp_ajax.ajaxnonce, 15 date: $(this).attr("data-startdate") 16 }; 17 18 e.preventDefault(); 19 $( '#events' ).html( image ); 20 $.post( 21 wp_ajax.ajaxurl, 22 data, 23 function( response ) 24 { 25 // ERROR HANDLING 26 if( !response.success ) 27 { 28 // No data came back, maybe a security error 29 if( !response.data ) 30 $( '#events' ).html( 'AJAX ERROR: no response' ); 31 else 32 $( '#events' ).html( response.data.error ); 33 } 34 else 35 $( '#events' ).html( response.data ); 36 37 if ($.isFunction($( 'html' ).getNiceScroll().resize())){ 38 $( 'html' ).getNiceScroll().resize(); 39 } 40 } 41 ); 42 43 }) 44});
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.