diff --git a/frontend_tests/casper_tests/07-stars.js b/frontend_tests/casper_tests/07-stars.js index 532b649f23..e141d5b3e3 100644 --- a/frontend_tests/casper_tests/07-stars.js +++ b/frontend_tests/casper_tests/07-stars.js @@ -2,7 +2,7 @@ var common = require('../casper_lib/common.js').common; function star_count() { return casper.evaluate(function () { - return $("#zhome .icon-vector-star:not(.empty-star)").length; + return $("#zhome .fa-star:not(.empty-star)").length; }); } @@ -40,7 +40,7 @@ casper.then(function () { }); casper.then(function () { - casper.waitUntilVisible('#zhome .icon-vector-star', function () { + casper.waitUntilVisible('#zhome .fa-star', function () { casper.test.assertEquals(star_count(), 1, "Got expected single star count."); diff --git a/static/js/ui.js b/static/js/ui.js index 96e6305b34..65eab33974 100644 --- a/static/js/ui.js +++ b/static/js/ui.js @@ -86,9 +86,9 @@ exports.update_starred = function (message) { update_message_in_all_views(message.id, function update_row(row) { var elt = row.find(".star"); if (starred) { - elt.addClass("icon-vector-star").removeClass("icon-vector-star-empty").removeClass("empty-star"); + elt.addClass("fa-star").removeClass("fa-star-o").removeClass("empty-star"); } else { - elt.removeClass("icon-vector-star").addClass("icon-vector-star-empty").addClass("empty-star"); + elt.removeClass("fa-star").addClass("fa-star-o").addClass("empty-star"); } var title_state = starred ? i18n.t("Unstar") : i18n.t("Star"); elt.attr("title", i18n.t("__starred_status__ this message", {starred_status: title_state})); diff --git a/static/templates/single_message.handlebars b/static/templates/single_message.handlebars index 693504b00d..a340c4ed3e 100644 --- a/static/templates/single_message.handlebars +++ b/static/templates/single_message.handlebars @@ -45,23 +45,23 @@
{{else}}
- +
{{/if}} {{#unless msg/locally_echoed}}
- +
{{/unless}}
- - + +
{{#unless msg/locally_echoed}} -
+
{{/unless}}