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}