diff --git a/public/javascripts/app/templates/status-message.handlebars b/public/javascripts/app/templates/status-message.handlebars index 584d3a281..9cdb3a9ec 100644 --- a/public/javascripts/app/templates/status-message.handlebars +++ b/public/javascripts/app/templates/status-message.handlebars @@ -15,6 +15,8 @@ {{/if}}
- {{{text}}} +

+ {{{text}}} +

{{{o_embed_html}}}
diff --git a/public/javascripts/app/views/feedback_view.js b/public/javascripts/app/views/feedback_view.js index b01afe673..71d71b802 100644 --- a/public/javascripts/app/views/feedback_view.js +++ b/public/javascripts/app/views/feedback_view.js @@ -14,10 +14,6 @@ app.views.Feedback = app.views.Base.extend({ this.model.bind('feedback', this.render, this); }, - postRenderTemplate : function(){ - console.log('fuck') - }, - presenter : function() { return _.extend(this.defaultPresenter(), { userCanReshare : this.userCanReshare() diff --git a/spec/javascripts/app/views/stream_view_spec.js b/spec/javascripts/app/views/stream_view_spec.js index fa1ebdbfe..b1b8b1630 100644 --- a/spec/javascripts/app/views/stream_view_spec.js +++ b/spec/javascripts/app/views/stream_view_spec.js @@ -29,9 +29,7 @@ describe("app.views.Stream", function() { describe("#render", function() { beforeEach(function() { this.statusMessage = this.stream.posts.models[0]; - this.reshare = this.stream.posts.models[1]; - this.statusElement = $(this.view.$("#" + this.statusMessage.get("guid"))); - this.reshareElement = $(this.view.$("#" + this.reshare.get("guid"))); + this.statusElement = $(this.view.$(".stream_element")[0]); }); context("when rendering a status message", function() { @@ -46,7 +44,7 @@ describe("app.views.Stream", function() { beforeEach(function() { this.statusMessage = this.stream.posts.models[0]; - this.statusElement = $(this.view.$("#" + this.statusMessage.get("guid"))); + this.statusElement = $(this.view.$(".stream_element")[0]); readMoreLink = this.statusElement.find('.read-more a'); readMoreLink.text("read more"); }); @@ -91,7 +89,7 @@ describe("app.views.Stream", function() { it('collapses li elements on webkit/IE but leaves them alone on firefox', function() { this.statusMessage = this.stream.posts.models[3]; - this.statusElement = $(this.view.$("#" + this.statusMessage.get("guid"))); + this.statusElement = $(this.view.$(".stream_element")[3]); readMoreLink = this.statusElement.find('.read-more a'); readMoreLink.text("read more");