Created
December 6, 2011 19:21
-
-
Save rthbound/1439532 to your computer and use it in GitHub Desktop.
stuff to do
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
| $(document).ready(function() { | |
| var options = { | |
| target: '#div_effect', | |
| type: 'post', | |
| }; | |
| $("#post_comment_button").click(function() { | |
| $('#new-comment-form').submit(function() { | |
| // please don't redirect me | |
| // instead inject my new comment into the list | |
| // and clear the damned text | |
| $(this).ajaxSubmit(options); | |
| return false; | |
| }); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment