mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
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:
commit
063dbf07d6
@ -465,22 +465,19 @@ function event_comment(current_event) {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
var params = [];
|
var params = {
|
||||||
params.push("page=include/ajax/events");
|
page: "include/ajax/events",
|
||||||
params.push("add_comment=1");
|
add_comment: 1,
|
||||||
if (event.event_rep > 0) {
|
event_id: event.event_rep > 0 ? event.max_id_evento : event.id_evento,
|
||||||
params.push("event_id=" + event.max_id_evento);
|
comment: comment,
|
||||||
} else {
|
server_id: event.server_id
|
||||||
params.push("event_id=" + event.id_evento);
|
};
|
||||||
}
|
|
||||||
params.push("comment=" + comment);
|
|
||||||
params.push("server_id=" + event.server_id);
|
|
||||||
|
|
||||||
$("#button-comment_button").attr("disabled", "disabled");
|
$("#button-comment_button").attr("disabled", "disabled");
|
||||||
$("#response_loading").show();
|
$("#response_loading").show();
|
||||||
|
|
||||||
jQuery.ajax({
|
jQuery.ajax({
|
||||||
data: params.join("&"),
|
data: params,
|
||||||
type: "POST",
|
type: "POST",
|
||||||
url: getUrlAjax(),
|
url: getUrlAjax(),
|
||||||
dataType: "html",
|
dataType: "html",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user