update old messages' stream-color text class

(imported from commit 998611bd5b4e25985be73c9262a5c1e772f87ce1)
This commit is contained in:
acrefoot
2014-02-07 16:01:10 -05:00
committed by Allen Rabinovich
parent 320c2b8eaf
commit 8af170a3c3
2 changed files with 6 additions and 2 deletions

View File

@@ -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);
} }
}); });
} }

View File

@@ -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);
} }
} }