balmet.com

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

redux-banner-admin.js (709B)


      1 /* global console:true, ajaxurl */
      2 
      3 (function( $ ) {
      4     $.redux_banner = $.redux_banner || {};
      5     $( document ).ready( function() {
      6     	var post_data = {
      7 		    'action': 'redux_activation',
      8 		    'nonce': $( '#redux-connect-message' ).data( 'nonce' )
      9 	    };
     10 		$( '.redux-connection-banner-action' ).on( 'click', function ( e ) {
     11 			$( '#redux-connect-message' ).hide();
     12 			e.preventDefault();
     13 			post_data['activate'] = $(this).data( 'activate' );
     14 			$.post( $( this ).data('url'), post_data );
     15 		});
     16 		jQuery('.redux-insights-data-we-collect').on('click', function( e ) {
     17 			e.preventDefault();
     18 			jQuery( this ).parents('.updated').find('p.description').slideToggle('fast');
     19 		});
     20     });
     21 })( jQuery );