FOSCommentBundle icon indicating copy to clipboard operation
FOSCommentBundle copied to clipboard

two comments showing up

Open vamsiikrishna opened this issue 12 years ago • 2 comments

Hi , when I type and comment and submit, two comments are showing up .

this is the generated html and js

<div id="fos_comment_thread"></div>
<script type="text/javascript">
// thread id
var fos_comment_thread_id = '158';

// api base url to use for initial requests
var fos_comment_thread_api_base_url = '/api/threads';

// Snippet for asynchronously loading the comments
(function() {
    var fos_comment_script = document.createElement('script');
    fos_comment_script.async = true;
    fos_comment_script.src = '/js/35a8e64_comments_1.js';
    fos_comment_script.type = 'text/javascript';

    (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(fos_comment_script);
})();
</script>

Regards.

vamsiikrishna avatar Feb 17 '13 18:02 vamsiikrishna

You have not provided enough information to debug the issue.

First step, if you have modified FOSCommentBundle templates, revert them to see if the issue still occurs.

merk avatar Feb 17 '13 21:02 merk

I am trying to figure out the issue. btw I am using jquery mobile .. jquery(1.8.2) is loaded in the page..the original views remain unaltered..

edit:

inspected in chrome network. its sending 2 post requests

vamsiikrishna avatar Mar 27 '13 10:03 vamsiikrishna