Initial commit

This commit is contained in:
Felix Förtsch
2020-10-20 14:39:50 +02:00
commit 648ded8896
1225 changed files with 216511 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
/*global dbcl:false, ajaxurl:false */
( function ( $ ) {
$( document ).on( 'submit', '#dbcl_form', function ( e ) {
e.preventDefault();
$( '#dbcl_results' ).empty();
var dbcl_data = {
action: 'dbcl',
dbcl_key: $( '#dbcl_key' ).val(),
dbcl_group: $( '#dbcl_group' ).val(),
security: dbcl.security
};
$.post( ajaxurl, dbcl_data, function ( res ) {
if ( true === res.success ) {
$( '#dbcl_results' ).html( res.data.cache );
} else {
$( '#dbcl_results' ).html( 'No cache data found.' );
}
} );
} );
} )( jQuery );