fix compressing of comments in stream
This commit is contained in:
parent
4a43441194
commit
8a3e0727c1
1 changed files with 3 additions and 2 deletions
|
|
@ -19,9 +19,10 @@ var Stream = {
|
|||
//Stream.setUpImageLinks();
|
||||
|
||||
Diaspora.widgets.subscribe("stream/scrolled", Stream.collapseText);
|
||||
Stream.collapseText('eventID', Stream.selector);
|
||||
Stream.collapseText('eventID', $(Stream.selector)[0]);
|
||||
},
|
||||
collapseText: function(){
|
||||
console.log(arguments);
|
||||
elements = $(Array.prototype.slice.call(arguments,1));
|
||||
// collapse long posts
|
||||
$(".content p", elements).expander({
|
||||
|
|
@ -34,7 +35,7 @@ var Stream = {
|
|||
// collapse long comments
|
||||
$(".comment .content span", elements).expander({
|
||||
slicePoint: 200,
|
||||
widow: 400,
|
||||
widow: 18,
|
||||
expandText: Diaspora.widgets.i18n.t("show_more"),
|
||||
userCollapse: false
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue