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

rename cdmScrollToId to cdmMoveToId

prevent smooth scrolling when going directly to an article
This commit is contained in:
Andrew Dolgov
2020-05-09 08:16:12 +03:00
parent 2558fcbe21
commit a802649d53
3 changed files with 20 additions and 16 deletions

View File

@@ -9,7 +9,7 @@ Plugins.Af_Readability = {
content.innerHTML = content.getAttribute(self.orig_attr_name);
content.removeAttribute(self.orig_attr_name);
if (App.isCombinedMode()) Article.cdmScrollToId(id);
if (App.isCombinedMode()) Article.cdmMoveToId(id);
return;
}
@@ -23,7 +23,7 @@ Plugins.Af_Readability = {
content.innerHTML = reply.content;
Notify.close();
if (App.isCombinedMode()) Article.cdmScrollToId(id);
if (App.isCombinedMode()) Article.cdmMoveToId(id);
} else {
Notify.error("Unable to fetch full text for this article");