mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	update old messages' stream-color text class
(imported from commit 998611bd5b4e25985be73c9262a5c1e772f87ce1)
This commit is contained in:
		
				
					committed by
					
						
						Allen Rabinovich
					
				
			
			
				
	
			
			
			
						parent
						
							320c2b8eaf
						
					
				
				
					commit
					8af170a3c3
				
			@@ -45,9 +45,12 @@ function update_table_stream_color(table, stream_name, color) {
 | 
				
			|||||||
    var stream_labels = $("#floating_recipient_bar").add(table).find(".stream_label");
 | 
					    var stream_labels = $("#floating_recipient_bar").add(table).find(".stream_label");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    _.each(stream_labels, function (label) {
 | 
					    _.each(stream_labels, function (label) {
 | 
				
			||||||
        if ($.trim($(label).text()) === stream_name) {
 | 
					        var $label = $(label);
 | 
				
			||||||
            $(label).css({"background": style,
 | 
					        if ($.trim($label.text()) === stream_name) {
 | 
				
			||||||
 | 
					            $label.css({"background": style,
 | 
				
			||||||
                          "border-left-color": style});
 | 
					                          "border-left-color": style});
 | 
				
			||||||
 | 
					            $label.removeClass(exports.color_classes);
 | 
				
			||||||
 | 
					            $label.addClass(color_class);
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
    });
 | 
					    });
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -128,6 +128,7 @@ exports.colorize_tab_bar = function () {
 | 
				
			|||||||
                }
 | 
					                }
 | 
				
			||||||
              );
 | 
					              );
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
 | 
					            stream_tab.removeClass(stream_color.color_classes);
 | 
				
			||||||
            stream_tab.addClass(stream_dark);
 | 
					            stream_tab.addClass(stream_dark);
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user