8889841ctcchp.clix.co.tz/wp-content/plugins/the-events-calendar/src/resources/js/admin-ignored-events.js 0000644 00000005567 15051612160 0031563 0 ustar 00 home/clixcotz var tribe_ignore_events = 'undefined' !== typeof tribe_ignore_events ? tribe_ignore_events : {}; ( function( $, data ) { "use strict"; /** * Migration for Legacy Ignored Event */ $( function() { $( '#tribe-migrate-legacy-events' ).on( 'click', function() { var $this = $( this ), $spinner = $this.next( '.spinner' ), $dismiss = $this.parents( '.notice' ).eq( 0 ).find( '.notice-dismiss' ), $container = $this.parent(); $spinner.css( { visibility: 'visible' } ); $.ajax( ajaxurl, { dataType: 'json', method: 'POST', data: { action: 'tribe_convert_legacy_ignored_events' }, success: function ( response, status ) { // eslint-disable-line no-unused-vars if ( response.status ) { $container.html( response.text ); setTimeout( function () { $dismiss.trigger( 'click' ); }, 5000 ); } else { $container.before( $( '
' ).html( response.text ) ); } }, complete: function () { $spinner.css( { visibility: 'hidden' } ); } } ); } ); } ); /** * Modify Archive page elements */ $( function(){ // Verify that all WP variables exists if ( -1 !== [ typeof pagenow, typeof typenow, typeof adminpage ].indexOf( 'undefined' ) ) { return false; } // We are not on the correct Page if ( 'edit-tribe_events' !== pagenow || 'tribe_events' !== typenow || 'edit-php' !== adminpage ) { return false; } if ( 'undefined' === typeof data.archive ) { return false; } var $selects = $( '#bulk-action-selector-top, #bulk-action-selector-bottom' ); $selects.each( function() { var $this = $( this ); $this.append( $( '