Notifications
Clear all

Refresh page

2 Posts
2 Users
0 Reactions
2,156 Views
 uber
(@uber)
New Member
Joined: 9 years ago
Posts: 1
Topic starter  

Hi,

I'd like my page to automatically reload everytime a user posts a new comment or reply. Trying the implement the following code in javascript:

document.location.reload(true);

However i'm unsure where this line should be placed and whether it's the correct implementation.

Thank you!


   
Quote
 Tom
(@tomson)
Famed Member Admin
Joined: 10 years ago
Posts: 4214
 

Hope you familiar with jQuery. you should add reloaded function in wpdiscuz.min.js file. It's currently minimized, you should extend and find this function:

H(document).delegate(".wc_comm_submit","click",function(){
      ....
      
      V(am).done(function(at) {

            ...... your code should be after last comment submitter functions...

      }
      ....
}

   
ReplyQuote
Share:
Scroll to top