Automatically open the online users box if a user requests subscription.

This commit is contained in:
JC Brand 2012-09-11 19:45:30 +02:00
parent 4c6d6b2f1a
commit db7c0ba7eb

View File

@ -984,6 +984,7 @@ xmppchat.RosterItemView = Backbone.View.extend({
ev.preventDefault(); ev.preventDefault();
that.declineRequest(); that.declineRequest();
}); });
xmppchat.chatboxesview.openChat('online-users-container');
} else if (subscription === 'both') { } else if (subscription === 'both') {
this.$el.addClass('current-xmpp-contact'); this.$el.addClass('current-xmpp-contact');
this.$el.html(this.template(item.toJSON())); this.$el.html(this.template(item.toJSON()));