mirror of
https://github.com/zulip/zulip.git
synced 2025-11-01 20:44:04 +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");
|
||||
|
||||
_.each(stream_labels, function (label) {
|
||||
if ($.trim($(label).text()) === stream_name) {
|
||||
$(label).css({"background": style,
|
||||
var $label = $(label);
|
||||
if ($.trim($label.text()) === stream_name) {
|
||||
$label.css({"background": style,
|
||||
"border-left-color": style});
|
||||
$label.removeClass(exports.color_classes);
|
||||
$label.addClass(color_class);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user