Add CSS minification, AJAX settings, and modern admin styling
This commit is contained in:
@ -2,11 +2,11 @@ jQuery(document).ready(function($) {
|
||||
$('.wpa-superstar-toggle input').on('change', function() {
|
||||
var option = $(this).attr('name');
|
||||
var value = $(this).is(':checked') ? 1 : 0;
|
||||
$.post(ajaxurl, {
|
||||
$.post(wpaSuperstar.ajaxurl, {
|
||||
action: 'wpa_superstar_update_option',
|
||||
option: option,
|
||||
value: value,
|
||||
nonce: '<?php echo wp_create_nonce( "wpa-superstar-nonce" ); ?>'
|
||||
nonce: wpaSuperstar.nonce
|
||||
}, function(response) {
|
||||
console.log(response);
|
||||
});
|
||||
|
Reference in New Issue
Block a user