Last active
November 2, 2018 11:47
-
-
Save Adoonq/1a20f5404c8871a769cfb41c41d25a0c to your computer and use it in GitHub Desktop.
Modx FormIt Ajax - событие отправки
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).on('af_complete', function(event, response) { | |
var form = response.form; | |
if (response.success) { | |
form.trigger('reset'); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment