Files
sean 0e8a8b3028
Some checks failed
deploy-testing / deploy (push) Has been cancelled
Initial testing snapshot
2026-11-17 16:15:01 -05:00

13 lines
411 B
JavaScript

jQuery(function($){
function performAutosave(){
var panel = $(this).parents('div.custom-options-panel');
var params = panel.find('input, select, textarea').serialize();
params = params + '&action=save_settings-' + panel.attr('id');
$.post(
'admin-ajax.php',
params
);
}
$('#screen-options-wrap div.requires-autosave').find('input, select, textarea').change(performAutosave);
});