Commit 57b7debd authored by Steffen van Bergerem's avatar Steffen van Bergerem Committed by Benjamin Neff

Refactor location stream view, remove unused function

closes #7364
parent 05e97980
......@@ -10,7 +10,6 @@ app.views.Content = app.views.Base.extend({
text : app.helpers.textFormatter(this.model.get("text"), this.model.get("mentioned_people")),
largePhoto : this.largePhoto(),
smallPhotos : this.smallPhotos(),
location: this.location(),
isReshare : this.model.get("post_type") === "Reshare"
});
},
......@@ -38,11 +37,6 @@ app.views.Content = app.views.Base.extend({
$(evt.currentTarget).hide();
},
location: function(){
var location = this.model.get("location")? this.model.get("location") : "";
return location;
},
collapseOversized : function() {
var collHeight = 200
, elem = this.$(".collapsible")
......
// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL-v3-or-Later
app.views.LocationStream = app.views.Content.extend({
app.views.LocationStream = app.views.Base.extend({
events: {
"click .near-from": "toggleMap"
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment