Move configure tab to submenu and use ajax

This commit is contained in:
Brian Miyaji
2014-08-14 13:13:04 +10:00
parent 7749fefbda
commit fd835a2af3
7 changed files with 409 additions and 455 deletions

View File

@@ -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()
});
});
});