mirror of
https://github.com/e107inc/e107.git
synced 2025-07-30 19:30:25 +02:00
Comment fixes. Problem remains with SEF Urls
This commit is contained in:
@@ -43,7 +43,7 @@ $(document).ready(function()
|
||||
var formid = (pid != '0') ? "#e-comment-form-reply" : "#e-comment-form";
|
||||
var data = $('form'+formid).serialize() ;
|
||||
var total = parseInt($("#e-comment-total").text());
|
||||
|
||||
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: url + '?ajax_used=1&mode=submit',
|
||||
@@ -59,7 +59,7 @@ $(document).ready(function()
|
||||
if($('#comments-container').length){
|
||||
// alert('true');
|
||||
}else{
|
||||
$("#e-comment-form").parent().prepend("<div id='comments-container'></div>");
|
||||
// $("#e-comment-form").parent().prepend("<div id='comments-container'></div>");
|
||||
}
|
||||
|
||||
if(pid != 0)
|
||||
@@ -119,6 +119,8 @@ $(document).ready(function()
|
||||
url: url + '?ajax_used=1&mode=reply',
|
||||
data: { itemid: sp[3], table: table },
|
||||
success: function(data) {
|
||||
|
||||
// alert(url);
|
||||
var a = $.parseJSON(data);
|
||||
|
||||
if(!a.error)
|
||||
|
Reference in New Issue
Block a user