diff --git a/browser/js/tips.js b/browser/js/tips.js index ad57a2f91587b3c0d757375c1ac497be0ce86cc2..aee13b8c59e7ee3f08c353a6dab06fe392594244 100644 --- a/browser/js/tips.js +++ b/browser/js/tips.js @@ -44,7 +44,7 @@ TipsOfTheDay.prototype = { } var tip = this.tips[tip_id]; this.set_seen(tip_id); - return tip; + return {id: tip_id, content: tip}; }, load_next_unseen: function() { @@ -142,7 +142,9 @@ TipDecorator.prototype = { var tip_div = document.createElement('div'); tip_div.className = "left"; - tip_div.innerHTML = elem; + var tmp = elem.content; + tmp += "
"; + tip_div.innerHTML = tmp; div.appendChild(tip_div);