you want the id in aspect_memberships#destroy to be garbage? There you go… (btw. fixed #1006)
This commit is contained in:
parent
c7dc6ce817
commit
75629018db
1 changed files with 3 additions and 2 deletions
|
|
@ -100,9 +100,10 @@ var AspectEdit = {
|
||||||
var aspect_id = person.attr('data-aspect_id')
|
var aspect_id = person.attr('data-aspect_id')
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "DELETE",
|
type: "DELETE",
|
||||||
url: "/aspect_memberships/" + aspect_id,
|
url: "/aspect_memberships/garbage",
|
||||||
data: {
|
data: {
|
||||||
'person_id': person_id
|
'person_id': person_id,
|
||||||
|
'aspect_id': aspect_id
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue