installed plugin Easy Digital Downloads
version 3.1.0.3
This commit is contained in:
@ -0,0 +1,28 @@
|
||||
/**
|
||||
* Deletes the debug log file and disables logging.
|
||||
*/
|
||||
; ( function ( document, $ ) {
|
||||
'use strict';
|
||||
|
||||
$( '#edd-disable-debug-log' ).on( 'click', function ( e ) {
|
||||
e.preventDefault();
|
||||
$( this ).attr( 'disabled', true );
|
||||
var notice = $( '#edd-debug-log-notice' );
|
||||
$.ajax( {
|
||||
type: "GET",
|
||||
data: {
|
||||
action: 'edd_disable_debugging',
|
||||
nonce: $( '#edd_debug_log_delete' ).val(),
|
||||
},
|
||||
url: ajaxurl,
|
||||
success: function ( response ) {
|
||||
notice.empty().append( response.data );
|
||||
setTimeout( function () {
|
||||
notice.slideUp();
|
||||
}, 3000 );
|
||||
}
|
||||
} ).fail( function ( response ) {
|
||||
notice.empty().append( response.responseJSON.data );
|
||||
} );
|
||||
} );
|
||||
} )( document, jQuery );
|
Reference in New Issue
Block a user