moar garbage for you aka fixed #1005
This commit is contained in:
parent
75629018db
commit
f194166841
1 changed files with 4 additions and 3 deletions
|
|
@ -65,10 +65,11 @@ var AspectEdit = {
|
|||
var aspect_id = person.attr('data-aspect_id')
|
||||
$.ajax({
|
||||
type: "PUT",
|
||||
url: "/aspect_memberships/" + aspect_id,
|
||||
url: "/aspect_memberships/garbage",
|
||||
data: {
|
||||
"person_id": person.attr('data-guid'),
|
||||
"to": dropzone.attr('data-aspect_id')
|
||||
"to": dropzone.attr('data-aspect_id'),
|
||||
"aspect_id": aspect_id
|
||||
},
|
||||
success: function(data) {
|
||||
AspectEdit.onMovePersonSuccess(person, dropzone);
|
||||
|
|
@ -97,7 +98,7 @@ var AspectEdit = {
|
|||
Diaspora.widgets.alert.alert("Error removing contact", "You cannot remove the person from the last aspect");
|
||||
} else {
|
||||
if (!person.hasClass('request')) {
|
||||
var aspect_id = person.attr('data-aspect_id')
|
||||
var aspect_id = person.attr('data-aspect_id');
|
||||
$.ajax({
|
||||
type: "DELETE",
|
||||
url: "/aspect_memberships/garbage",
|
||||
|
|
|
|||
Loading…
Reference in a new issue