Skip to content

Instantly share code, notes, and snippets.

@rtllxndr
Last active October 22, 2016 21:49
Show Gist options
  • Save rtllxndr/9e212a011d83aebd8a33fcc128d7abda to your computer and use it in GitHub Desktop.
Save rtllxndr/9e212a011d83aebd8a33fcc128d7abda to your computer and use it in GitHub Desktop.
function post_sync(data_) {
$.ajax({
type: 'POST',
url: window.location.href,
data: data_,
complete: function () {
window.location.reload(true);
}
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment