summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2020-05-09 08:16:10 +0300
committerAndrew Dolgov <[email protected]>2020-05-09 08:16:10 +0300
commita39c189201f6eb18d8df5094b91e6cc0885c6b3b (patch)
tree5f194ea60464cc06967f1f5563ad0a49c4515445
parent7b22d2f488cbec11003a6d18638a30e0d8dc3087 (diff)
rename cdmScrollToId to cdmMoveToId
prevent smooth scrolling when going directly to an article
-rwxr-xr-xinit.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/init.js b/init.js
index 5398047..6773064 100755
--- a/init.js
+++ b/init.js
@@ -15,7 +15,7 @@ require(['dojo/_base/kernel', 'dojo/ready'], function (dojo, ready) {
Article.setActive(id);
if (!App.getInitParam("cdm_expanded"))
- Article.cdmScrollToId(id);
+ Article.cdmMoveToId(id);
} else if (in_body) {
Headlines.toggleUnread(id, 0);
}