Skip to content
Advertisement

javascript button on clock

Now I have issue that only first clicked button works when pressing others post buttons after first clicked button, it just disappears and not loading comments,

Adding snipped to clarify issue. It’s first time using this feature. Sorry for issues, may you can help me with that.

I’m using django as backend.

JavaScript
JavaScript
JavaScript

Advertisement

Answer

You need to set special currentItems variable for each posts.

remove the global currentItems variable and Try

JavaScript
User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement