| Server IP : 65.108.144.40 / Your IP : 216.73.217.165 Web Server : Apache/2.4.52 (Ubuntu) System : Linux ubuntu-8gb-hel1-1 5.15.0-173-generic #183-Ubuntu SMP Fri Mar 6 13:29:34 UTC 2026 x86_64 User : dev ( 1000) PHP Version : 8.2.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/erp/static/tickets/ |
Upload File : |
$(`.change-ticket`).mouseup(function (e) {
if (!$(e.target).hasClass('action-button')){
e.preventDefault()
setTimeout(() => {
var status = $(this).parent().attr("data-ticket-id");
var ticket = $(e.target).parents(".change-ticket").last();
var ticketID = ticket.attr("data-ticket-id");
if (ticketID != null) {
$.ajax({
type: "post",
url: `/helpdesk/change-ticket-status/${ticketID}/`,
data: {
csrfmiddlewaretoken: getCookie("csrftoken"),
"status": status,
},
success: function (response) {
var duration = 0;
if (response.type != "noChange") {
$("#ohMessages").append(`
<div class="oh-alert-container">
<div class="oh-alert oh-alert--animated oh-alert--${response.type}">
${response.message}
</div>
</div>`);
duration = 1500;
}
// countSequence(false);
},
error: () => {
console.log("error")
},
});
}
}, 200);
}
});