mirror of
https://github.com/MOIS3Y/logs-collector.git
synced 2025-09-13 13:13:01 +02:00
Modified: views and and urlconf
This commit is contained in:
@@ -32,15 +32,20 @@ $(function () {
|
||||
$("#ticket-state").click(function () {
|
||||
console.log('Press');
|
||||
let resolved = false;
|
||||
if ($(this).attr("checked")) {
|
||||
let ticket_state_url = $(this).attr("ticket-state-url")
|
||||
if ($(this).attr("ticket-state-switch") === "1") {
|
||||
console.log('Find it!!!')
|
||||
resolved = true;
|
||||
resolved = true;
|
||||
$(this).attr("ticket-state-switch", "0"); // disable
|
||||
|
||||
} else {
|
||||
resolved = false;
|
||||
$(this).attr("ticket-state-switch", "1"); // enable
|
||||
}
|
||||
console.log(resolved)
|
||||
$.ajax({
|
||||
type: "post",
|
||||
url: $(this).attr("ticket-state-url"),
|
||||
url: ticket_state_url,
|
||||
headers: {
|
||||
"X-CSRFToken":CSRF,
|
||||
"Content-Type":"application/json"
|
||||
|
Reference in New Issue
Block a user