Remove stream title from main stream
This commit is contained in:
parent
08c6d485e4
commit
fa06eba840
5 changed files with 2 additions and 17 deletions
|
|
@ -108,12 +108,6 @@ var app = {
|
|||
|
||||
evt.preventDefault();
|
||||
var link = $(this);
|
||||
if(link.data("stream-title") && link.data("stream-title").length) {
|
||||
$(".stream-title").text(link.data("stream-title"));
|
||||
} else {
|
||||
$(".stream-title").text(link.text());
|
||||
}
|
||||
|
||||
$("html, body").animate({scrollTop: 0});
|
||||
|
||||
// app.router.navigate doesn't tell us if it changed the page,
|
||||
|
|
|
|||
|
|
@ -15,7 +15,6 @@ app.views.AspectsList = app.views.Base.extend({
|
|||
|
||||
initialize: function() {
|
||||
this.collection.on("change", this.toggleSelector, this);
|
||||
this.collection.on("change", this.updateStreamTitle, this);
|
||||
this.collection.on("aspectStreamFetched", this.updateAspectList, this);
|
||||
app.events.on("aspect:create", function(id) { window.location = "/contacts?a_id=" + id });
|
||||
},
|
||||
|
|
@ -26,7 +25,6 @@ app.views.AspectsList = app.views.Base.extend({
|
|||
|
||||
postRenderTemplate: function() {
|
||||
this.collection.each(this.appendAspect, this);
|
||||
this.updateStreamTitle();
|
||||
this.toggleSelector();
|
||||
},
|
||||
|
||||
|
|
@ -58,10 +56,6 @@ app.views.AspectsList = app.views.Base.extend({
|
|||
}
|
||||
},
|
||||
|
||||
updateStreamTitle: function() {
|
||||
$(".stream-title").text(this.collection.toSentence());
|
||||
},
|
||||
|
||||
updateAspectList: function() {
|
||||
this.collection.each(function(aspect) {
|
||||
var element = this.$("li[data-aspect_id="+aspect.get("id")+"]");
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@
|
|||
}
|
||||
|
||||
.main-stream-publisher {
|
||||
margin-top: 20px;
|
||||
padding: 0;
|
||||
|
||||
.avatar {
|
||||
|
|
|
|||
|
|
@ -2,10 +2,6 @@
|
|||
-# licensed under the Affero General Public License version 3 or later. See
|
||||
-# the COPYRIGHT file.
|
||||
|
||||
- if user_signed_in? && @person != current_user.person
|
||||
%h3.stream-title
|
||||
= stream.title
|
||||
|
||||
.container-fluid.main-stream-publisher
|
||||
.pull-left.hidden-xs
|
||||
= owner_image_link
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ Feature: Keyboard navigation
|
|||
Scenario: navigate downwards after changing the stream
|
||||
When I go to the activity stream page
|
||||
And I click on selector "[data-stream='stream'] a"
|
||||
Then I should see "Stream" within ".stream-title"
|
||||
Then I should see "Stream" within "#stream_selection .selected"
|
||||
|
||||
When I press the "J" key somewhere
|
||||
Then post 1 should be highlighted
|
||||
|
|
|
|||
Loading…
Reference in a new issue