Visually highlight highlights

This commit is contained in:
Lorenz H-S 2013-12-17 14:37:22 +00:00
parent 887092eb4b
commit 2cf47c6161
2 changed files with 11 additions and 0 deletions

View file

@ -311,3 +311,8 @@ li.notification {
img.embed {
max-height: 300px;
}
.highlight {
color: yellow;
font-weight: bold;
}

View file

@ -187,6 +187,12 @@ models.service('models', ['$rootScope', '$filter', function($rootScope, $filter)
var content = weeChat.Protocol.rawText2Rich(message['message']);
addClasses(content);
if (highlight) {
prefix.forEach(function(textEl) {
textEl.classes.push('highlight');
});
}
var rtext = "";
if(content[0] != undefined) {
rtext = content[0]['text'];