0be7b604dc94f877a813c77d1caffb6caa5ff267
hiram
  Wed Dec 10 11:06:58 2025 -0800
improved prompt tags for the expandable sectios refs #35776

diff --git src/hg/js/hgc.js src/hg/js/hgc.js
index 1113cb6cf03..d92af2cf85e 100644
--- src/hg/js/hgc.js
+++ src/hg/js/hgc.js
@@ -439,34 +439,37 @@
             var newText = document.createTextNode(label);
             newCell.appendChild(newText);
             newCell = newRow.insertCell();
             newCell.appendChild(dataToTable(label, data));
             // find the last details table and add a new table on:
             var currTbl = $(".bedExtraTbl");
             l = currTbl.length;
             var last = currTbl[l-1];
             insertAfter(newTable, last);
             newTable.classList.add("bedExtraTbl");
             last.parentNode.insertBefore(document.createElement("br"), newTable);
         }
     }
     document.querySelectorAll('.hideToggle').forEach(function(element) {
        element.addEventListener('click', function() {
-         var targetId = this.getAttribute('data-target');
+         var targetId = this.getAttribute('dataTarget');
          var targetDiv = document.getElementById(targetId);
+         var toggleImg = this.querySelector('img');
          if (targetDiv.style.display === 'none') {
              targetDiv.style.display = 'block';
+             toggleImg.src = '../images/remove_sm.gif';
          } else {
              targetDiv.style.display = 'none';
+             toggleImg.src = '../images/add_sm.gif';
          }
        });
     });
 }
 
 // Export a way to call the document.ready() functions after ajax
 var hgc = {initPage: initPage};
 
 // on page load initialize VEP, Population Frequency and Haplotype Tables
 // for gnomAD v3.1.1 track
 $(document).ready(function() {
     initPage();
 });