1a0fe31189d4bbaeccc42b8f34fe12e876e189d7 galt Fri Feb 3 10:09:59 2017 -0800 removing debugging and old CSP1 stuff. diff --git src/hg/js/utils.js src/hg/js/utils.js index a3f8ffe..7a9361f 100644 --- src/hg/js/utils.js +++ src/hg/js/utils.js @@ -683,31 +683,30 @@ 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); return content; } function warnBoxJsSetup() { // Sets up warnBox if not already established. This is duplicated from htmshell.c - // alert("warnBoxJsSetup() called"); // DEBUG REMOVE GALT TODO Nonce? 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}; html += "<script type='text/javascript'>"; html += "function showWarnBox() {";