Skip to content

Instantly share code, notes, and snippets.

@joemsak
Last active January 6, 2017 18:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joemsak/2d3f911c41b044b2b4f6eaf80d8f20ce to your computer and use it in GitHub Desktop.
Save joemsak/2d3f911c41b044b2b4f6eaf80d8f20ce to your computer and use it in GitHub Desktop.
(function() {
var forms = document.getElementsByClassName('new_submission_score');
function handleSuccessfulSave(evt, xhr, status, error) {
debugger;
createFlashNotification("success", "Saved!");
}
for (var i = 0; i < forms.length; i++) {
$(forms[i]).on('ajax:success', handleSuccessfulSave);
}
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment