mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-03 21:43:21 +00:00 
			
		
		
		
	right sidebar: Ensure .user-with-count gets added to correct li element.
The count_span element is parented by a .selectable_sidebar_block element which is parented by the li element that the class is supposed to be added to. Thus, use the parents() jQuery method for locating the li parent so that the class gets added to the correct element.
This commit is contained in:
		@@ -33,7 +33,7 @@ exports.new_user_input = true;
 | 
			
		||||
var huddle_timestamps = new Dict();
 | 
			
		||||
 | 
			
		||||
function update_pm_count_in_dom(count_span, value_span, count) {
 | 
			
		||||
    var li = count_span.parent();
 | 
			
		||||
    var li = count_span.parents('li');
 | 
			
		||||
 | 
			
		||||
    if (count === 0) {
 | 
			
		||||
        count_span.hide();
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user