Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
malacoscolicine
/
wp-content
/
plugins
/
redux-framework
/
redux-core
/
inc
/
welcome
/
js
:
redux-banner-admin.js
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
/* global console:true, ajaxurl */ (function( $ ) { $.redux_banner = $.redux_banner || {}; $( document ).ready( function() { var post_data = { 'action': 'redux_activation', 'nonce': $( '#redux-connect-message' ).data( 'nonce' ) }; $( '.redux-connection-banner-action' ).on( 'click', function( e ) { var status = $( '.redux-banner-tos-blurb' ); $( this ).addClass( 'disabled' ); status.html( 'Installing Extendify plugin...' ); e.preventDefault(); post_data['activate'] = $( this ).data( 'activate' ); $.post( $( this ).data( 'url' ), post_data, function( response ) { var point = response.indexOf( '{"type":' ) if ( point > 0 ) { response = response.substring( point ); } response = JSON.parse( response ); console.log( response.msg ); status.html( response.msg ); if ( 'close' === response.type ) { $( '#redux-connect-message' ).slideUp(); } } ); } ); $( '.redux-insights-data-we-collect' ).on( 'click', function( e ) { e.preventDefault(); $( this ).parents( '.updated' ).find( 'p.description' ).slideToggle( 'fast' ); } ); } ); })( jQuery );