Created
June 13, 2016 11:51
-
-
Save Burick/58be3d63f622b094e279d75154449c2c to your computer and use it in GitHub Desktop.
AjaxForm в модалке
This file contains hidden or 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
<script> | |
$(document).on('af_complete', function(event, response) { | |
var form = response.form; | |
if (response.success) { | |
$.fancybox.close(); | |
$.fancybox('<h1>' + response.message + '</h1>'); | |
} | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment