4ddbd4de63bff1948c81c6b84aa9334cdadeeb8c
braney
  Fri Aug 20 17:48:25 2021 -0700
restore the watermark in the position box if we update the hgTracks
image.   refs #27728

diff --git src/hg/js/hgTracks.js src/hg/js/hgTracks.js
index 955e692..585daca 100644
--- src/hg/js/hgTracks.js
+++ src/hg/js/hgTracks.js
@@ -4051,30 +4051,33 @@
                                 this.newVisibility + " mode.");
                     var rec = oldJson.trackDb[this.id];
                     rec.limitedVis = newJson.trackDb[this.id].limitedVis;
                     vis.update(this.id, visibility);
                     if (visibility === "hide")
                         cart.updateSessionPanel(); // notify when vis change to hide track
                     valid = true;
                 } else {
                     // what got returned from the AJAX request was a different
                     // set of tracks.  Let's do a reload and hope for the best
                     imageV2.fullReload();
                 }
             } else {
                 valid = true;
             }
+
+            suggestBox.restoreWatermark(getDb(), $("#suggestTrack").length > 0);
+
             // the ajax request may have generated an error or warning in the warnbox
             // so make sure those warnings still get to the user
             stripJsEmbedded(response, false, stripped);
         }
         if (valid) {
             if (imageV2.enabled
             && this.id
             && this.cmd
             && this.cmd !== 'wholeImage'
             && this.cmd !== 'selectWholeGene'
             && !newJson.virtChromChanged) {
                 // Extract <TR id='tr_ID'>...</TR> and update appropriate row in imgTbl;
                 // this updates src in img_left_ID, img_center_ID and img_data_ID
                 // and map in map_data_ID
                 var id = this.id;