fb761d3895124a6052c3a71102eac03f9235f990 max Fri Jun 25 03:52:26 2021 -0700 moving the udcTimeout message to a notification box, refs #27677 diff --git src/hg/js/utils.js src/hg/js/utils.js index 2723950..93f3c56 100644 --- src/hg/js/utils.js +++ src/hg/js/utils.js @@ -694,30 +694,39 @@ var sectionBegin = "'nonce-"; var sectionEnd = "'"; var ix = content.indexOf(sectionBegin); if (ix < 0) return ""; content = content.substring(ix+sectionBegin.length); ix = content.indexOf(sectionEnd); if (ix < 0) return ""; content = content.substring(0,ix); if (debug) alert('page nonce='+content); return content; } +function notifBoxShow() { + /* move the notification bar div under '#TrackHeaderForm' */ + var notifEl = document.getElementById("notifBox"); + var parentEl = document.getElementById('TrackHeaderForm'); + parentEl.appendChild(notifEl); + notifEl.style.display = 'block'; + //document.getElementById('notifOK').onclick = notifBoxHide; +} + function warnBoxJsSetup() { // Sets up warnBox if not already established. This is duplicated from htmshell.c var html = ""; html += "<center>"; html += "<div id='warnBox' style='display:none;'>"; html += "<CENTER><B id='warnHead'></B></CENTER>"; html += "<UL id='warnList'></UL>"; html += "<CENTER><button id='warnOK'></button></CENTER>"; html += "</div></center>"; // GALT TODO either add nonce or move the showWarnBox and hideWarnBox to some universal javascript // file that is always included. Or consider if we can just dynamically define the functions // right here inside this function? maybe prepend function names with "window." to (re)define the global functions. // maybe something like window.showWarnBox = function(){stuff here};