FOSCommentBundle
FOSCommentBundle copied to clipboard
two comments showing up
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.
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.
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