У меня работает нормально после замены
$('#submitNewMessage').click(function(e) {
// Kill default behaviour
e.preventDefault();
// Form element
$.ajax({
url: productcomments_controller_url+'&action=add_comment&secure_key='+secure_key,
data: $('#fancybox-content form').serialize(),
type: 'POST',
dataType: "json",
success: function(data){
if (data.result)
{
$.fancybox.close();
document.location.href = document.location.href;
}
else
{
$('#new_comment_form_error ul').html('');
$.each(data.errors, function(index, value) {
$('#new_comment_form_error ul').append('<li>'+value+'</li>');
});
$('#new_comment_form_error').slideDown('slow');
}
}
});
return false;
});