1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 17:35:56 +00:00

rename Headlines.correctHeadlinesOffset() to scrollToArticleId()

invoke it in Article.view() instead of all over the place
This commit is contained in:
Andrew Dolgov
2020-05-17 17:01:52 +03:00
parent 05a84ab778
commit 25c8467753
2 changed files with 3 additions and 4 deletions

View File

@@ -835,7 +835,6 @@ define(["dojo/_base/declare"], function (declare) {
Article.setActive(next_id);
Article.cdmMoveToId(next_id, {event: event, noscroll: noscroll});
} else {
Headlines.correctHeadlinesOffset(next_id);
Article.view(next_id, noexpand);
}
}
@@ -855,7 +854,6 @@ define(["dojo/_base/declare"], function (declare) {
}
} else if (prev_id) {
Headlines.correctHeadlinesOffset(prev_id);
Article.view(prev_id, noexpand);
}
}
@@ -1193,7 +1191,7 @@ define(["dojo/_base/declare"], function (declare) {
eval(elem.value);
elem.attr('value', 'false');
},
correctHeadlinesOffset: function (id) {
scrollToArticleId: function (id) {
const container = $("headlines-frame");
const row = $("RROW-" + id);