f8b16feaacf8742673d634e6584ddd37ca5caa2a galt Thu Feb 2 14:13:51 2017 -0800 Fixing missing ajax transfer in hgTracks popup hgTrackUi js. Note this should basically pick up the equivalent of inline event handlers like onclick= stuff. diff --git src/hg/js/hgTracks.js src/hg/js/hgTracks.js index 951d9f7..9c71faa 100644 --- src/hg/js/hgTracks.js +++ src/hg/js/hgTracks.js @@ -3488,42 +3488,61 @@ var urlData = cart.varsToUrlData(changedVars); if (imageV2.mapIsUpdateable) { imageV2.requestImgUpdate(trackName,urlData,""); } else { window.location = "../cgi-bin/hgTracks?" + urlData + "&hgsid=" + getHgsid(); } } } } }, uiDialog: function (response, status) { // Take html from hgTrackUi and put it up as a modal dialog. - //alert("Got here popUp.uiDialog"); // DEBUG REMOVE GALT + var pageNonce = getNonce(); + alert('pageNonce='+pageNonce); // DEBUG REMOVE + + var ajaxNonce = stripNonce(response, false); + alert('ajaxNonce='+ajaxNonce); // DEBUG REMOVE + + var jsNonce = stripJsNonce(response, ajaxNonce, false);// DEBUG msg with true // make sure all links (e.g. help links) open up in a new window response = response.replace(/"+ cleanHtml +""); + // append ajax js blocks with nonce + var i; + for (i=0; i