Merge branch 'ent-10564-15146-bug-en-comentarios-de-eventos' into 'develop'

fixed add commet event

See merge request artica/pandorafms!5672
This commit is contained in:
Daniel Rodriguez 2023-04-19 10:45:50 +00:00
commit 063dbf07d6
1 changed files with 8 additions and 11 deletions

View File

@ -465,22 +465,19 @@ function event_comment(current_event) {
return false;
}
var params = [];
params.push("page=include/ajax/events");
params.push("add_comment=1");
if (event.event_rep > 0) {
params.push("event_id=" + event.max_id_evento);
} else {
params.push("event_id=" + event.id_evento);
}
params.push("comment=" + comment);
params.push("server_id=" + event.server_id);
var params = {
page: "include/ajax/events",
add_comment: 1,
event_id: event.event_rep > 0 ? event.max_id_evento : event.id_evento,
comment: comment,
server_id: event.server_id
};
$("#button-comment_button").attr("disabled", "disabled");
$("#response_loading").show();
jQuery.ajax({
data: params.join("&"),
data: params,
type: "POST",
url: getUrlAjax(),
dataType: "html",