Skip to content
Extraits de code Groupes Projets
Valider ae3dec01 rédigé par Steffen van Bergerem's avatar Steffen van Bergerem
Parcourir les fichiers

Fix aspect membership dropdown on people search page

parent 80a0a9f9
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -100,6 +100,9 @@ var app = {
setupGlobalViews: function() {
app.hovercard = new app.views.Hovercard();
app.aspectMembershipsBlueprint = new app.views.AspectMembershipBlueprint();
$('.aspect_membership_dropdown').each(function(){
new app.views.AspectMembership({el: this});
});
app.sidebar = new app.views.Sidebar();
},
......
......@@ -6,9 +6,6 @@ app.views.Notifications = Backbone.View.extend({
initialize: function() {
Diaspora.page.header.notifications.setUpNotificationPage(this);
$('.aspect_membership_dropdown').each(function(){
new app.views.AspectMembership({el: this});
});
},
toggleUnread: function(evt) {
......
......@@ -11,16 +11,16 @@ $(document).ready(function() {
$('#profile_buttons .sharing_message_container').tooltip({placement: 'bottom'});
$("#block_user_button").click(function(evt) {
if(!confirm(Diaspora.I18n.t('ignore_user'))) { return; }
var personId = $(this).data('person-id');
var block = new app.models.Block();
block.save({block : {person_id : personId}}, {
success: function() {
$('#profile_buttons').attr('class', 'blocked');
$('#sharing_message').attr('class', 'icons-circle');
$('.profile_button, .white_bar').remove();
}
});
var personId = $(this).data('person-id');
var block = new app.models.Block();
block.save({block : {person_id : personId}}, {
success: function() {
$('#profile_buttons').attr('class', 'blocked');
$('#sharing_message').attr('class', 'icons-circle');
$('.profile_button, .white_bar').remove();
}
});
return false;
});
return false;
});
});
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter