mirror of
https://github.com/zulip/zulip.git
synced 2025-11-08 07:52:19 +00:00
Make the left sidebar and right sidebar more consistent.
Addresses Trac #1500. (imported from commit ad59d6f78042ce89a99ad60c7c34f67144e9c776)
This commit is contained in:
@@ -159,7 +159,7 @@ exports.register_click_handlers = function () {
|
||||
});
|
||||
|
||||
|
||||
$('body').on('click', '.user_sidebar_entry', function (e) {
|
||||
$('#user_presences').on('click', 'span.arrow', function (e) {
|
||||
var last_sidebar_elem = current_user_sidebar_elem;
|
||||
popovers.hide_all();
|
||||
|
||||
|
||||
@@ -292,6 +292,10 @@ $(function () {
|
||||
rebuild_recent_subjects(op_stream[0], subject);
|
||||
process_visible_unread_messages();
|
||||
}
|
||||
var op_pm = event.filter.operands('pm-with');
|
||||
if (op_pm.length === 1) {
|
||||
$("#user_presences li[data-email='" + op_pm[0] + "']").addClass('active-filter');
|
||||
}
|
||||
});
|
||||
|
||||
$(document).on('narrow_deactivated.zulip', function (event) {
|
||||
|
||||
@@ -1158,8 +1158,8 @@ $(function () {
|
||||
timerender.set_full_datetime(message, time_elem);
|
||||
});
|
||||
|
||||
$('#user_presences').on('click', 'a', function (e) {
|
||||
var email = $(e.target).closest('a').attr('data-email');
|
||||
$('#user_presences').on('click', '.selectable_sidebar_block', function (e) {
|
||||
var email = $(e.target).parents('li').attr('data-email');
|
||||
narrow.by('pm-with', email, {trigger: 'presence list'});
|
||||
compose.start('private', {private_message_recipient: email,
|
||||
trigger: 'presence list'});
|
||||
|
||||
Reference in New Issue
Block a user