Disable background rules and show whitespace by default
authorKarl O. Pinc <kop@karlpinc.com>
Tue, 8 Oct 2024 16:03:45 +0000 (11:03 -0500)
committerKarl O. Pinc <kop@karlpinc.com>
Tue, 8 Oct 2024 16:03:45 +0000 (11:03 -0500)
src/pgwui_sql/static/pgwui_sql.js
src/pgwui_sql/templates/sql.mak

index d87adff04068c1b3545f8e6e48ccef9ae1670189..e30b7d15418c6c5b376856128116b8e6187cf025 100644 (file)
@@ -84,4 +84,7 @@ function initializeStyling() {
 globalThis.tdSqltextSheet = getSheet(pgwuiSqlShowWhitespaceURL());
 globalThis.horizontalRuleSheet = getSheet(pgwuiSqlBackgroundRulesURL());
 attachEvents();
+/* This is redundent, since styling on load should be right,
+   but it does not hurt and is needed to properly style should the checkbox
+   defaults change.*/
 initializeStyling();
index bbe9cb927a40b8ef9108c39fc2a1e3ff3a9d85dd..6b9915d4e18cfd94989a6e1fa05293cc9952260d 100644 (file)
 <%block name="stylesheet_links">
   ${parent.stylesheet_links()}
   <link rel="stylesheet"
+        disabled
         href="${request.static_path('pgwui_sql:static/show_whitespace.css')}"
         type="text/css" />
   <link rel="stylesheet"
+        disabled
         href="${request.static_path('pgwui_sql:static/background_rules.css')}"
         type="text/css" />
 </%block>