Skip to content

Commit

Permalink
add nonce="<%=getScriptNonce()%>" (#788)
Browse files Browse the repository at this point in the history
does not fixup in line events

Co-authored-by: Matthew Bellew <[email protected]>
  • Loading branch information
labkey-adam and labkey-matthewb authored Nov 17, 2023
1 parent 6d506bd commit c2316e2
Show file tree
Hide file tree
Showing 17 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion src/org/labkey/targetedms/search/modificationSearch.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
%>
<div id=<%=q(renderId)%>></div>

<script type="text/javascript">
<script type="text/javascript" nonce="<%=getScriptNonce()%>">
Ext4.onReady(function(){
Expand Down
2 changes: 1 addition & 1 deletion src/org/labkey/targetedms/view/calibrationCurve.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
<%
String elementId = "targetedmsCalibrationCurve";
%>
<script type="text/javascript">
<script type="text/javascript" nonce="<%=getScriptNonce()%>">
var calibrationCurvePlot;
Expand Down
2 changes: 1 addition & 1 deletion src/org/labkey/targetedms/view/chromatogramsForm.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
font-size:10px;
}
</style>
<script type="text/javascript">
<script type="text/javascript" nonce="<%=getScriptNonce()%>">
+function($){
Expand Down
2 changes: 1 addition & 1 deletion src/org/labkey/targetedms/view/confirmImport.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
TargetedMSController.SkylinePipelinePathForm form = (TargetedMSController.SkylinePipelinePathForm)HttpView.currentModel();
ActionURL targetURL = new ActionURL(TargetedMSController.SkylineDocUploadAction.class, getContainer());
%>
<script type="text/javascript">
<script type="text/javascript" nonce="<%=getScriptNonce()%>">
Ext.onReady(function() {
Ext.select('.repr_cb').on('click', function(event, target) {
Expand Down
2 changes: 1 addition & 1 deletion src/org/labkey/targetedms/view/figuresOfMerit.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@
</div>
</div>

<script type="text/javascript">
<script type="text/javascript" nonce="<%=getScriptNonce()%>">
+function($) {
this.$ = $;
Expand Down
2 changes: 1 addition & 1 deletion src/org/labkey/targetedms/view/instrumentCalendar.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
}
%>

<script>
<script type="text/javascript" nonce="<%=getScriptNonce()%>">
(function() {
let calendar = null;
let heatMapSource = 'sampleCount';
Expand Down
2 changes: 1 addition & 1 deletion src/org/labkey/targetedms/view/paretoPlot.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@

<div id=<%=q(tiledPlotPanelId)%> class="tiledPlotPanel"></div>

<script type="text/javascript">
<script type="text/javascript" nonce="<%=getScriptNonce()%>">
function init() {
var tiledPlotPanelId = <%=q(tiledPlotPanelId)%>;
Expand Down
2 changes: 1 addition & 1 deletion src/org/labkey/targetedms/view/passport/MxNReport.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
%>
<!--START IMPORTS-->

<script type="text/javascript">
<script type="text/javascript" nonce="<%=getScriptNonce()%>">
var proteinJSON = <%=json(protein.getJSON(false), 2)%>
document.addEventListener("DOMContentLoaded", function() {
LABKEY.Query.selectRows({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
%>
<!--START IMPORTS-->

<script type="text/javascript">
<script type="text/javascript" nonce="<%=getScriptNonce()%>">
var proteinJSON = <%=json(protein.getJSON(true), 2)%>
document.addEventListener("DOMContentLoaded", function() {
protein.initialize();
Expand Down
2 changes: 1 addition & 1 deletion src/org/labkey/targetedms/view/pharmacokinetics.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@
</labkey:panel>
<%}%>
</div>
<script type="application/javascript">
<script type="text/javascript" nonce="<%=getScriptNonce()%>">
+function ($) {
var moleculeId = <%=molecule.getId()%>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
div.protein_details {padding:3px;}
</style>

<script type="text/javascript">
<script type="text/javascript" nonce="<%=getScriptNonce()%>">
var $ = jQuery.noConflict();
var table;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
div.protein_details {padding:3px;}
</style>

<script type="text/javascript">
<script type="text/javascript" nonce="<%=getScriptNonce()%>">
var $ = jQuery.noConflict();
var table;
Expand Down
2 changes: 1 addition & 1 deletion src/org/labkey/targetedms/view/qcSummary.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@

<div style="min-height: 160px;" id=<%=q(qcSummaryId)%> ></div>

<script type="text/javascript">
<script type="text/javascript" nonce="<%=getScriptNonce()%>">
Ext4.onReady(function()
{
Ext4.create('LABKEY.targetedms.QCSummary', {
Expand Down
2 changes: 1 addition & 1 deletion src/org/labkey/targetedms/view/qcTrendPlotReport.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
<div id=<%=q(plotPaginationPanelId)%> class="plotPaginationHeaderPanel"></div>
<div id=<%=q(plotPanelId)%> class="tiledPlotPanel"></div>

<script type="text/javascript">
<script type="text/javascript" nonce="<%=getScriptNonce()%>">
function init() {
var reportPanelId = <%=q(reportPanelId)%>;
var plotPanelId = <%=q(plotPanelId)%>;
Expand Down
2 changes: 1 addition & 1 deletion src/org/labkey/targetedms/view/runMethodChain.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@

<div id="runMethodChainDetails">Loading...</div>

<script type="text/javascript">
<script type="text/javascript" nonce="<%=getScriptNonce()%>">
Ext4.onReady(function() {
Ext4.create('LABKEY.targetedms.LinkedVersions', {
divId: 'runMethodChainDetails',
Expand Down
2 changes: 1 addition & 1 deletion src/org/labkey/targetedms/view/spectrum/spectrumView.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
<!-- PLACE HOLDER DIV FOR THE SPECTRUM -->
<div id="<%=h(lorikeetOptionsId)%>"></div>
<div id="<%=h(bean.getLorikeetId())%>"></div>
<script type="text/javascript">
<script type="text/javascript" nonce="<%=getScriptNonce()%>">
+function($){
Ext4.onReady(function () {
Expand Down
2 changes: 1 addition & 1 deletion src/org/labkey/targetedms/view/summaryChartsView.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@
padding-left:105px;
}
</style>
<script type="text/javascript">
<script type="text/javascript" nonce="<%=getScriptNonce()%>">
Ext4.onReady(function() {
// data stores
Expand Down

0 comments on commit c2316e2

Please sign in to comment.