Use this instead of the CSS selector .sortable

In this context, `this` already points to the element, so there is no
need to search it again.
This commit is contained in:
decabeza
2022-08-29 17:23:15 +02:00
committed by Senén Rodero Rodríguez
parent 8311e7e6b8
commit d2cc110678

View File

@@ -9,7 +9,7 @@
attribute: "data-answer-id"
});
$.ajax({
url: $(".sortable").data("js-url"),
url: $(this).data("js-url"),
data: {
ordered_list: new_order
},