File "avril-admin-script.js"
Full Path: /home/elegucvf/public_html/video/wp-content/wp-includes/wp-includes/wp-includes/wp-content/themes/avril/assets/js/avril-admin-script.js
File size: 1 KB
MIME-type: text/plain
Charset: utf-8
( function( $ ){
$( document ).ready( function(){
$( '.avril-btn-get-started' ).on( 'click', function( e ) {
e.preventDefault();
$( this ).html( 'Processing.. Please wait' ).addClass( 'updating-message' );
$.post( avril_ajax_object.ajax_url, { 'action' : 'install_act_plugin' }, function( response ){
location.href = 'customize.php?avril_notice=dismiss-get-started';
} );
} );
} );
$( 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 = $( this ).closest( '.notice-get-started-class' ).data( 'notice' );
// Make an AJAX call
$.ajax( ajaxurl,
{
type: 'POST',
data: {
action: 'avril_dismissed_notice_handler',
type: type,
}
} );
} );
}( jQuery ) )