fixed content expander in comments; comments have a smaller limit than posts

This commit is contained in:
danielgrippi 2011-07-03 22:06:58 -07:00
parent d2b7168195
commit 403d18bac4
3 changed files with 13 additions and 5 deletions

View file

@ -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}

View file

@ -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(){

View file

@ -477,6 +477,7 @@ ul.dropdown
:bottom 5px
.post_initial_info
.details
:color #aaa