From: Karl O. Pinc Date: Wed, 25 Sep 2024 18:22:11 +0000 (-0500) Subject: Improve commenting and formatting X-Git-Url: https://papio.biology.duke.edu/gitweb/?a=commitdiff_plain;h=2922add744fb043c92c45badac007e8a9dddc826;p=pgwui_sql Improve commenting and formatting --- diff --git a/src/pgwui_sql/static/pgwui_sql.js b/src/pgwui_sql/static/pgwui_sql.js index 66e1728..0647153 100644 --- a/src/pgwui_sql/static/pgwui_sql.js +++ b/src/pgwui_sql/static/pgwui_sql.js @@ -20,9 +20,11 @@ Karl O. Pinc - See sql.mak for the script that defines + See sql.mak for the script which creates the function that deliver + template values. */ +/* Functions attached to HTML elements */ function openSqlEdit() { window.open( pgwuiSqlEditRoute(), @@ -33,6 +35,7 @@ function openSqlEdit() { + ',top=' + window.screenTop) .focus(); } + function whitespaceDisplay(checked) { if (checked) { globalThis.tdSqltextSheet.disabled = false; @@ -40,6 +43,8 @@ function whitespaceDisplay(checked) { globalThis.tdSqltextSheet.disabled = true; } } + +/* Functions for initialization */ function getTdSqltextSheet() { const url = pgwuiSqlShowWhitespaceURL(); for (const sheet of document.styleSheets) {