From 2922add744fb043c92c45badac007e8a9dddc826 Mon Sep 17 00:00:00 2001 From: "Karl O. Pinc" Date: Wed, 25 Sep 2024 13:22:11 -0500 Subject: [PATCH] Improve commenting and formatting --- src/pgwui_sql/static/pgwui_sql.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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) { -- 2.34.1