From 1c05107f2bf322505b1962fc245de1071da15d0f Mon Sep 17 00:00:00 2001 From: Fabien Basmaison Date: Wed, 7 Apr 2021 07:53:30 +0200 Subject: [PATCH] [assets] Tweak comments. --- bookwyrm/static/js/bookwyrm.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bookwyrm/static/js/bookwyrm.js b/bookwyrm/static/js/bookwyrm.js index b3959e30e..f36df1094 100644 --- a/bookwyrm/static/js/bookwyrm.js +++ b/bookwyrm/static/js/bookwyrm.js @@ -177,8 +177,6 @@ let BookWyrm = new class { /** * Show or hide menus. * - * @note This function seems to be redundant and conflicts with toggleAction. - * * @param {Event} event * * @return {undefined} @@ -222,6 +220,9 @@ let BookWyrm = new class { /** * Give the focus to an element. * + * This is useful with modals: the focus needs to go back to the element that + * was focused before opening the modal. + * * @param {string} nodeId - ID of the DOM node to focus (button, linkā€¦) * * @return {undefined}