mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-20 12:15:15 +00:00
Only call autotime() on the correct elements
This commit is contained in:
parent
0b79445b57
commit
345943d48f
1 changed files with 5 additions and 5 deletions
|
@ -468,7 +468,7 @@ function updateConvItems(mode,data) {
|
||||||
$('#' + prev).after($(this));
|
$('#' + prev).after($(this));
|
||||||
if(isVisible)
|
if(isVisible)
|
||||||
showHideComments(itmId);
|
showHideComments(itmId);
|
||||||
$(".autotime").timeago();
|
$(".autotime",this).timeago();
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$('img',this).each(function() {
|
$('img',this).each(function() {
|
||||||
|
@ -479,7 +479,7 @@ function updateConvItems(mode,data) {
|
||||||
$('#' + ident).replaceWith($(this));
|
$('#' + ident).replaceWith($(this));
|
||||||
if(isVisible)
|
if(isVisible)
|
||||||
showHideComments(itmId);
|
showHideComments(itmId);
|
||||||
$(".autotime").timeago();
|
$(".autotime",this).timeago();
|
||||||
}
|
}
|
||||||
prev = ident;
|
prev = ident;
|
||||||
});
|
});
|
||||||
|
@ -510,7 +510,7 @@ function updateConvItems(mode,data) {
|
||||||
$('#threads-end').before($(this));
|
$('#threads-end').before($(this));
|
||||||
if(isVisible)
|
if(isVisible)
|
||||||
showHideComments(itmId);
|
showHideComments(itmId);
|
||||||
$(".autotime").timeago();
|
$(".autotime",this).timeago();
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$('img',this).each(function() {
|
$('img',this).each(function() {
|
||||||
|
@ -521,7 +521,7 @@ function updateConvItems(mode,data) {
|
||||||
$('#' + ident).replaceWith($(this));
|
$('#' + ident).replaceWith($(this));
|
||||||
if(isVisible)
|
if(isVisible)
|
||||||
showHideComments(itmId);
|
showHideComments(itmId);
|
||||||
$(".autotime").timeago();
|
$(".autotime",this).timeago();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -555,7 +555,7 @@ function updateConvItems(mode,data) {
|
||||||
$('#' + prev).after($(this));
|
$('#' + prev).after($(this));
|
||||||
if(isVisible)
|
if(isVisible)
|
||||||
showHideComments(itmId);
|
showHideComments(itmId);
|
||||||
$(".autotime").timeago();
|
$(".autotime",this).timeago();
|
||||||
|
|
||||||
}
|
}
|
||||||
prev = ident;
|
prev = ident;
|
||||||
|
|
Loading…
Reference in a new issue