mirror of https://github.com/zulip/zulip.git
Fix stream color changes
(imported from commit 37c0a2a5fba10404d9c51d1e4cdce7f45e18f54b)
This commit is contained in:
parent
fae92685ae
commit
2761f1338d
|
@ -43,15 +43,12 @@ function update_table_stream_color(table, stream_name, color) {
|
|||
var color_class = exports.get_color_class(color);
|
||||
|
||||
var stream_labels = $("#floating_recipient_bar").add(table).find(".stream_label");
|
||||
var messages = table.find(".messagebox");
|
||||
|
||||
_.each(messages, function (message) {
|
||||
$(message).css("box-shadow", "inset 2px 0px 0px 0px " + style + ", -1px 0px 0px 0px " + style);
|
||||
});
|
||||
|
||||
_.each(stream_labels, function (label) {
|
||||
var $label = $(label);
|
||||
if ($.trim($label.text()) === stream_name) {
|
||||
var messages = $label.closest(".recipient_row").children(".message_row");
|
||||
messages.children(".messagebox").css("box-shadow", "inset 2px 0px 0px 0px " + style + ", -1px 0px 0px 0px " + style);
|
||||
$label.css({"background": style,
|
||||
"border-left-color": style});
|
||||
$label.removeClass(exports.color_classes);
|
||||
|
|
Loading…
Reference in New Issue