Comment Widget Auto Reload Addon
This thing is just a really simple modification on Ayano's Comment Widget that makes it so the widget auto reloads when the user submits a comment. This is made because I can't stand why it would need a reload when you submit a comment.
To implement this to your site, here's the steps:
- Find the input that's have the id
c_form. That should look like this: - Now, add
refreshForm();on theonsubmitattribute. That should look like this: - Then, we're now making the JS function that will reload it. It's just a simple 3 lines. Put this on the script.
Modify the
1500to how many milliseconds do you want before it reloads the widget.
And that's pretty much it!