Forked from RafaelFunchal/MailPoet: Redirect After Submit
Last active
August 29, 2015 14:24
-
-
Save vvaz/bf4a65a1f3167df73feb to your computer and use it in GitHub Desktop.
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> | |
| (function($){ | |
| $(document).ready(function(){ | |
| $( 'form.widget_wysija' ).submit(function(e){ | |
| e.preventDefault(); | |
| setTimeout(function() { | |
| var msg = $( '.wysija-msg' ); | |
| if( msg.text() !== '' ){ | |
| window.location.replace( 'http://your_thank_you_page_url' ); | |
| } | |
| }, 3000); | |
| }); | |
| }); | |
| })(window.jQuery); | |
| </script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment