summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2020-05-09 08:16:12 +0300
committerAndrew Dolgov <[email protected]>2020-05-09 08:16:12 +0300
commita802649d5397da0bdeaceddf3a9a38093053bcba (patch)
tree19229f8cd4a22a42d9cab4b276a701ab08e8bf85 /plugins
parent2558fcbe21f009e8fd9b18d9d1407bf4e6115443 (diff)
rename cdmScrollToId to cdmMoveToId
prevent smooth scrolling when going directly to an article
Diffstat (limited to 'plugins')
-rw-r--r--plugins/af_readability/init.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/af_readability/init.js b/plugins/af_readability/init.js
index 644dff9fe..3155475cc 100644
--- a/plugins/af_readability/init.js
+++ b/plugins/af_readability/init.js
@@ -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");