Use a more descriptive id
authorKarl O. Pinc <kop@karlpinc.com>
Mon, 30 Sep 2024 14:02:47 +0000 (09:02 -0500)
committerKarl O. Pinc <kop@karlpinc.com>
Mon, 30 Sep 2024 14:02:47 +0000 (09:02 -0500)
src/pgwui_sql/static/sql_edit.js
src/pgwui_sql/templates/sql_edit.mak

index 35d65dfa872d93d0f1f38b13f21b39cbbc16a2b5..44dd95e9a1960103ad691b3249675152e609931c 100644 (file)
@@ -71,7 +71,7 @@ function toggleDownload() {
 /* Initialization */
 
 function attachEvents() {
-    document.getElementById('show_search_path_btn_id')
+    document.getElementById('reset_search_path_btn_id')
         .addEventListener("click", showSearchPath);
 
     const expand_eol_info = document.getElementById('expand_eol_info_id');
index 1fac2b269c654f6539bc0d5a839b35534ce7e160..51936338bd04c68de842102a1988eff2e6626913 100644 (file)
@@ -81,7 +81,7 @@
         </%self.lib:td_input>
         <td>
           <button type="button" tabindex="${tab_index.val}"
-                  id="show_search_path_btn_id"
+                  id="reset_search_path_btn_id"
           >Reset</button>
           <% tab_index.inc() %>
         </td>