Improve commenting and formatting
authorKarl O. Pinc <kop@karlpinc.com>
Wed, 25 Sep 2024 18:22:11 +0000 (13:22 -0500)
committerKarl O. Pinc <kop@karlpinc.com>
Wed, 25 Sep 2024 18:22:11 +0000 (13:22 -0500)
src/pgwui_sql/static/pgwui_sql.js

index 66e17289f4a6130a7184c8d6e84af6abaaf3ebb7..0647153ab5759af79ecd943176e1e21e0a4ad65c 100644 (file)
  
   Karl O. Pinc <kop@karlpinc.com>
 
-  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) {