Fix historical messages not getting their color updated on a color change.

Perhaps we should be checking based on an ID rather than the actual
text, but this fixes the proximal issue.

(imported from commit b125415c3a8356255b64c8e22733532491ea0065)
This commit is contained in:
Jessica McKellar 2013-11-03 21:48:19 -05:00
parent d43c01c911
commit 7e3035b2d9
1 changed files with 1 additions and 1 deletions

View File

@ -46,7 +46,7 @@ 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 ($(label).text() === stream_name) { if ($.trim($(label).text()) === stream_name) {
fixup($(label).parent("td").parent("tr").prev("tr") fixup($(label).parent("td").parent("tr").prev("tr")
.nextUntil(".bookend_tr") .nextUntil(".bookend_tr")
.children(".messagebox_colorblock,.message_header_colorblock")); .children(".messagebox_colorblock,.message_header_colorblock"));