fixed content expander in comments; comments have a smaller limit than posts
This commit is contained in:
parent
d2b7168195
commit
403d18bac4
3 changed files with 13 additions and 5 deletions
|
|
@ -16,7 +16,7 @@
|
|||
= person_image_link(post.author, :size => :thumb_small)
|
||||
|
||||
.content
|
||||
%div
|
||||
%div.post_initial_info
|
||||
%span.from
|
||||
= person_link(post.author, :class => 'author')
|
||||
%time.time.timeago{:datetime => post.created_at, :integer => time_for_sort(post).to_i}
|
||||
|
|
|
|||
|
|
@ -18,13 +18,21 @@ var Stream = {
|
|||
Stream.setUpAudioLinks();
|
||||
//Stream.setUpImageLinks();
|
||||
|
||||
// collapse long comments
|
||||
// collapse long posts
|
||||
$(".content p", this.selector).expander({
|
||||
slicePoint: 400,
|
||||
widow: 12,
|
||||
expandText: Diaspora.widgets.i18n.t("show_more"),
|
||||
userCollapse: false
|
||||
});
|
||||
|
||||
// collapse long comments
|
||||
$(".comment .content span", this.selector).expander({
|
||||
slicePoint: 200,
|
||||
widow: 12,
|
||||
expandText: Diaspora.widgets.i18n.t("show_more"),
|
||||
userCollapse: false
|
||||
});
|
||||
},
|
||||
|
||||
initializeLives: function(){
|
||||
|
|
@ -41,7 +49,6 @@ var Stream = {
|
|||
});
|
||||
|
||||
this.setUpComments();
|
||||
|
||||
},
|
||||
|
||||
setUpComments: function(){
|
||||
|
|
|
|||
|
|
@ -477,7 +477,8 @@ ul.dropdown
|
|||
:bottom 5px
|
||||
|
||||
|
||||
.details
|
||||
.post_initial_info
|
||||
.details
|
||||
:color #aaa
|
||||
|
||||
.time,
|
||||
|
|
|
|||
Loading…
Reference in a new issue