summaryrefslogtreecommitdiff
path: root/js/Article.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2021-02-18 15:13:41 +0300
committerAndrew Dolgov <[email protected]>2021-02-18 15:13:41 +0300
commit2e4b4037870ae0d69bc7a945bc86424d4cc9c1d2 (patch)
treeee5e5178cc283ce52653d8626f61f134e6f49486 /js/Article.js
parentbed36cbf9fde4a9016029fb8c21e6e68d540dee2 (diff)
* use es5 (?) default parameter values for some functions
* when moving to next article, try to show hsp if its next
Diffstat (limited to 'js/Article.js')
-rw-r--r--js/Article.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/js/Article.js b/js/Article.js
index a42d3af67..81917fd47 100644
--- a/js/Article.js
+++ b/js/Article.js
@@ -383,9 +383,7 @@ const Article = {
dialog.show();
},
- cdmMoveToId: function (id, params) {
- params = params || {};
-
+ cdmMoveToId: function (id, params = {}) {
const force_to_top = params.force_to_top || false;
const ctr = $("headlines-frame");