Fix the metadata return value

This commit is contained in:
Tor Hveem 2013-10-10 12:24:11 +02:00
parent b94edd0ff5
commit 5ae3ca27ca

View file

@ -76,9 +76,9 @@ models.service('models', ['colors', function(colors) {
var displayed = message['displayed'];
var highlight = message['highlight'];
var content = parseLineAddedTextElements(message);
var text = "";
var rtext = "";
if(text[0] != undefined) {
text = text[0]['text'];
rtext = text[0]['text'];
}
return {
@ -88,7 +88,7 @@ models.service('models', ['colors', function(colors) {
tags: tags_array,
highlight: highlight,
displayed: displayed,
text: text,
text: rtext,
}
}