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:
committed by
Senén Rodero Rodríguez
parent
8311e7e6b8
commit
d2cc110678
@@ -9,7 +9,7 @@
|
|||||||
attribute: "data-answer-id"
|
attribute: "data-answer-id"
|
||||||
});
|
});
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: $(".sortable").data("js-url"),
|
url: $(this).data("js-url"),
|
||||||
data: {
|
data: {
|
||||||
ordered_list: new_order
|
ordered_list: new_order
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user