File "creative-portfolio-lite-admin-script.js"

Full Path: /home/pumpbmko/public_html/wp-content/themes/creative-portfolio-lite/js/creative-portfolio-lite-admin-script.js
File size: 1.09 KB
MIME-type: text/plain
Charset: utf-8

( function( jQuery ){
    jQuery( document ).ready( function(){
      jQuery( '.creative-portfolio-lite-btn-get-started' ).on( 'click', function( e ) {
          e.preventDefault();
          jQuery( this ).html( 'Processing.. Please wait' ).addClass( 'updating-message' );
          jQuery.post( creative_portfolio_lite_ajax_object.ajax_url, { 'action' : 'install_act_plugin' }, function( response ){
              location.href = 'customize.php?creative_portfolio_lite_notice=dismiss-get-started';
          } );
      } );
    } );

    jQuery( document ).on( 'click', '.notice-get-started-class .notice-dismiss', function () {
        // Read the "data-notice" information to track which notice
        // is being dismissed and send it via AJAX
        var type = jQuery( this ).closest( '.notice-get-started-class' ).data( 'notice' );
        // Make an AJAX call
        jQuery.ajax( ajaxurl,
          {
            type: 'POST',
            data: {
              action: 'creative_portfolio_lite_dismissed_notice_handler',
              type: type,
            }
          } );
      } );
}( jQuery ) )