6fcf8b481d7de5712b21db2e9ed7afbae3f65543 max Fri Sep 18 09:39:10 2026 -0700 hgSession: description field's watermark names the field again #Preview2 week - bugs introduced now will need a build patch to fix refs #38311 diff --git src/hg/js/hgSession.js src/hg/js/hgSession.js index 537151601a4..8cd9b9db207 100644 --- src/hg/js/hgSession.js +++ src/hg/js/hgSession.js @@ -694,31 +694,31 @@ return '<div class="sessSaveCard">' + '<div class="sessSaveHead"><span class="sessSaveTitle">' + 'Save the current view as a stable session link</span>' + what + '</div>' + '<div class="sessSaveRow">' + '<div class="sessSaveField">' + '<input id="sessSaveName" class="sessSaveInput" type="text" maxlength="255" ' + 'placeholder="Session name, default ' + randName + '">' + '<span class="sessInfo" title="' + nameTip + '">ⓘ</span></div>' + '<label class="sessSaveCheck"><input type="checkbox" id="sessSavePrivate"> ' + 'Private: Session can only be loaded by myself</label>' + '<button type="button" class="gbPill primary" id="sessSaveBtn" ' + 'title="Save your current browser view as a named session">Save session</button>' + '</div>' + '<div class="sessSaveField">' + '<input id="sessSaveDesc" class="sessSaveInput" type="text" maxlength="512" ' + - 'placeholder="Optional">' + + 'placeholder="Description (optional)">' + '<span class="sessInfo" title="' + descTip + '">ⓘ</span></div>' + '</div>'; } function sessRecentHtml(recent) { // A quick shortcut to re-save the session the user most recently saved, keeping its name and // description. Hidden when there are no saved sessions. The button's own mouseover is easy to // miss, so a visible (i) bubble carries the same text. if (!recent) { return ''; } var tip = 'Overwrite this session with the currently active view; keeps the session name and ' + 'description identical'; return '<div class="sessRecent">Most recently saved session: <b>' + sessEnc(recent.name) + '</b> <span class="sessRecentTime">(' + sessEnc(recent.lastUse) + ')</span> ' + '<button type="button" class="gbPill" id="sessUpdateNow" title="' + tip + '">' + 'Overwrite now</button> <span class="sessInfo" title="' + tip + '">ⓘ</span></div>';