fictioneer/js/customizer.min.js
2024-03-02 23:36:12 +01:00

1 line
327 B
JavaScript

wp.customize.control("reset_all_colors",(o=>{o.container.find(".button").on("click",(()=>{1==confirm(fictioneerData.confirmationDialog??"Are you sure?")&&wp.ajax.post("fictioneer_ajax_reset_theme_colors",{fictioneer_nonce:wp.customize.settings.nonce["fictioneer-reset-colors"]}).done((o=>{o.success&&location.reload()}))}))}));