WPIntell

Source evidence

Script error when trying to delete comment

Review & Product Review by Review Builder · support · 2017-02-28T20:41:00+00:00

mixedsentiment
mediumseverity
0.78relevance
3replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

3 / 31 rows with source links

9.7% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

28 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
Harm10 resolved
I am testing this promising plug-in. When I try to delete a comment a get a script error: TypeError: SGComment.prototype.ajaxDelete is not a function 1 admin.php:1:1 What is wrong here? I did some investigating. In file sgComment.js in folder assets/page/scripts is the following code: SGComment.ajaxDelete = function(id) { if (confirm('Are you sure?')) { var deleteAction = 'Comment_ajaxDelete'; var ajaxHandler = new sgrbRequestHandler(deleteAction, {id: id}); ajaxHandler.dataType = 'html'; ajaxHandler.callback = function(response){ location.reload(); }; ajaxHandler.run(); } }; when changed to SGComment.prototype.ajaxDelete = function(id) { if (confirm('Are you sure?')) { var deleteAction = 'Comment_ajaxDelete'; var ajaxHandler = new sgrbRequestHandler(deleteAction, {id: id}); ajaxHandler.dataType = 'html'; ajaxHandler.callback = function(response){ location.reload(); }; ajaxHandler.run(); } }; the error is gone. So please update your file! Dear User, Thank you very much for reporting the issue! We’ve fixed it in our upcoming update! There won’t be any this kind of problems in the updated version! Best regards, Sygnoos Team. Thanks for replying and picking up the fix.

Comments

3 shown
Harm10 2017-03-01T19:45:00+00:00

I did some investigating. In file sgComment.js in folder assets/page/scripts is the following code: SGComment.ajaxDelete = function(id) { if (confirm('Are you sure?')) { var deleteAction = 'Comment_ajaxDelete'; var ajaxHandler = new sgrbRequestHandler(deleteAction, {id: id}); ajaxHandler.dataType = 'html'; ajaxHandler.callback = function(response){ location.reload(); }; ajaxHandler.run(); } }; when changed to SGComment.prototype.ajaxDelete = function(id) { if (confirm('Are you sure?')) { var deleteAction = 'Comment_ajaxDelete'; var ajaxHandler = new sgrbRequestHandler(deleteAction, {id: id}); ajaxHandler.dataType = 'html'; ajaxHandler.callback = function(response){ location.reload(); }; ajaxHandler.run(); } }; the error is gone. So please update your file!

Popup Builder Team 2017-03-02T11:08:00+00:00

Dear User, Thank you very much for reporting the issue! We’ve fixed it in our upcoming update! There won’t be any this kind of problems in the updated version! Best regards, Sygnoos Team.

Harm10 2017-03-02T21:14:00+00:00

Thanks for replying and picking up the fix.