Merge pull request #8079 from ozero/patch-1
[frio] Stop scrollToItem() animate twice.
This commit is contained in:
commit
7bf00984ec
1 changed files with 1 additions and 1 deletions
|
@ -650,7 +650,7 @@ function scrollToItem(elementId) {
|
||||||
// Scroll to the DIV with the ID (GUID)
|
// Scroll to the DIV with the ID (GUID)
|
||||||
$('html, body').animate({
|
$('html, body').animate({
|
||||||
scrollTop: itemPos
|
scrollTop: itemPos
|
||||||
}, 400, function() {
|
}, 400).promise().done( function() {
|
||||||
// Highlight post/commenent with ID (GUID)
|
// Highlight post/commenent with ID (GUID)
|
||||||
$el.animate(colWhite, 1000).animate(colShiny).animate(colWhite, 600);
|
$el.animate(colWhite, 1000).animate(colShiny).animate(colWhite, 600);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue