diff options
author | Andrew Dolgov <[email protected]> | 2020-05-09 08:16:12 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2020-05-09 08:16:12 +0300 |
commit | a802649d5397da0bdeaceddf3a9a38093053bcba (patch) | |
tree | 19229f8cd4a22a42d9cab4b276a701ab08e8bf85 /plugins/af_readability/init.js | |
parent | 2558fcbe21f009e8fd9b18d9d1407bf4e6115443 (diff) |
rename cdmScrollToId to cdmMoveToId
prevent smooth scrolling when going directly to an article
Diffstat (limited to 'plugins/af_readability/init.js')
-rw-r--r-- | plugins/af_readability/init.js | 4 |
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"); |