Fix expandable panel clickability, notification alignment, and AJAX nonce issues
This commit is contained in:
@ -91,6 +91,8 @@
|
|||||||
height: 20px;
|
height: 20px;
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
pointer-events: all;
|
||||||
|
z-index: 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
.wp-toggle-switch input {
|
.wp-toggle-switch input {
|
||||||
@ -220,6 +222,11 @@ input:checked + .wp-toggle-slider:before {
|
|||||||
transform: translateY(-50%) rotate(180deg);
|
transform: translateY(-50%) rotate(180deg);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Make sure the label doesn't interfere with clickability */
|
||||||
|
.wp-allstars-toggle-left label {
|
||||||
|
pointer-events: none;
|
||||||
|
}
|
||||||
|
|
||||||
.wp-allstars-expand-settings {
|
.wp-allstars-expand-settings {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
@ -648,8 +655,9 @@ input:checked + .wp-toggle-slider:before {
|
|||||||
.wp-allstars-setting-row label .wp-setting-notification {
|
.wp-allstars-setting-row label .wp-setting-notification {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
right: -60px;
|
right: -60px;
|
||||||
top: 50%;
|
top: 0;
|
||||||
transform: translateY(-50%);
|
transform: translateY(0);
|
||||||
|
line-height: 1.4;
|
||||||
}
|
}
|
||||||
|
|
||||||
@keyframes fadeIn {
|
@keyframes fadeIn {
|
||||||
|
@ -29,9 +29,9 @@ jQuery(document).ready(function($) {
|
|||||||
url: ajaxurl,
|
url: ajaxurl,
|
||||||
type: 'POST',
|
type: 'POST',
|
||||||
data: {
|
data: {
|
||||||
action: 'wp_allstars_update_option',
|
action: 'wp_allstars_update_option',
|
||||||
option: option,
|
option: option,
|
||||||
value: value,
|
value: value,
|
||||||
_wpnonce: wpAllstars.nonce
|
_wpnonce: wpAllstars.nonce
|
||||||
}
|
}
|
||||||
}).then(function(response) {
|
}).then(function(response) {
|
||||||
@ -165,7 +165,7 @@ jQuery(document).ready(function($) {
|
|||||||
data: {
|
data: {
|
||||||
action: 'wp_allstars_get_plugins',
|
action: 'wp_allstars_get_plugins',
|
||||||
category: category || 'minimal',
|
category: category || 'minimal',
|
||||||
nonce: wpAllstars.nonce
|
security: wpAllstars.nonce
|
||||||
},
|
},
|
||||||
success: function(response) {
|
success: function(response) {
|
||||||
if (response.success) {
|
if (response.success) {
|
||||||
@ -199,7 +199,7 @@ jQuery(document).ready(function($) {
|
|||||||
type: 'POST',
|
type: 'POST',
|
||||||
data: {
|
data: {
|
||||||
action: 'wp_allstars_get_theme',
|
action: 'wp_allstars_get_theme',
|
||||||
nonce: wpAllstars.nonce
|
security: wpAllstars.nonce
|
||||||
},
|
},
|
||||||
success: function(response) {
|
success: function(response) {
|
||||||
if (response.success) {
|
if (response.success) {
|
||||||
@ -264,7 +264,7 @@ jQuery(document).ready(function($) {
|
|||||||
data: {
|
data: {
|
||||||
action: 'wp_allstars_activate_theme',
|
action: 'wp_allstars_activate_theme',
|
||||||
theme: slug,
|
theme: slug,
|
||||||
nonce: wpAllstars.nonce
|
security: wpAllstars.nonce
|
||||||
},
|
},
|
||||||
success: function(response) {
|
success: function(response) {
|
||||||
if (response.success) {
|
if (response.success) {
|
||||||
|
Reference in New Issue
Block a user