Merge branch 'master' of github.com:diaspora/diaspora
This commit is contained in:
commit
85944535dd
2 changed files with 9 additions and 0 deletions
|
|
@ -204,6 +204,7 @@ class User
|
|||
Rails.logger.info("Received a salmon: #{cleartext}")
|
||||
salmon = Salmon::SalmonSlap.parse cleartext
|
||||
if salmon.verified_for_key?(salmon.author.public_key)
|
||||
Rails.logger.info("data in salmon: #{salmon.data}")
|
||||
self.receive(salmon.data)
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -16,6 +16,14 @@ $(function() {
|
|||
|
||||
$(".group ul").droppable({
|
||||
drop: function(event, ui) {
|
||||
if (ui.draggable[0].getAttribute('request_id') != null){
|
||||
$.ajax({
|
||||
type: "DELETE",
|
||||
url: "/requests/" + ui.draggable[0].getAttribute('request_id') ,
|
||||
data: {"accept" : true , "group_id" : $(this)[0].id }
|
||||
});
|
||||
alert("Sent the ajax, check it out!")
|
||||
}
|
||||
var move = {};
|
||||
move[ 'friend_id' ] = ui.draggable[0].id
|
||||
move[ 'to' ] = $(this)[0].id;
|
||||
|
|
|
|||
Loading…
Reference in a new issue