Move configure tab to submenu and use ajax
This commit is contained in:
@@ -366,4 +366,13 @@ jQuery(document).ready(function($){
|
||||
$this.find('strong').html(event.strftime("%D "+localized_strings.days+" %H:%M:%S"));
|
||||
});
|
||||
});
|
||||
|
||||
// Configure primary result option
|
||||
$( ".sp-admin-config-table" ).on( "click", ".sp-primary-result-option", function() {
|
||||
$.post( ajaxurl, {
|
||||
action: "sp-save-primary-result",
|
||||
primary_result: $(this).val(),
|
||||
nonce: $("#sp-config-nonce").val()
|
||||
});
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user