I am using the comments widget with yii2-scrollpager where i am loading the comments using the load more button, the problem is that the delete,replycancel-reply buttons that call the javascript methods defined in the init() method of the js/comments.js are not binded with the newer elements is there any option to initialize them? as i cant find any
what i am doing is below
i have a view where i am calling a ListView with yii-scrollpager enabled and the view used for the ListView is _latest-bongy which has the yii2-comments widget see below
I am using the comments widget with
yii2-scrollpager
where i am loading the comments using the load more button, the problem is that thedelete
,reply
cancel-reply
buttons that call the javascript methods defined in theinit()
method of thejs/comments.js
are not binded with the newer elements is there any option to initialize them? as i cant find anywhat i am doing is below
i have a view where i am calling a
ListView
withyii-scrollpager
enabled and the view used for theListView
is_latest-bongy
which has theyii2-comments
widget see below_latest-bongy.php
i am only including the widget part from the view as the rest of the html is not relevant