Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tag script blocks with nonce #120

Merged
merged 6 commits into from
Nov 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion OConnor/resources/assay/ELISpot_OConnor/views/results.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<script type="text/javascript">
<script type="text/javascript" nonce="<%=scriptNonce%>">

//LABKEY.requiresScript("ehr/AssayUtils.js");

Expand Down
2 changes: 1 addition & 1 deletion OConnor/resources/assay/Lymphocyte/views/batches.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<script type="text/javascript">
<script type="text/javascript" nonce="<%=scriptNonce%>">

LABKEY.requiresScript("ehr/AssayUtils.js");

Expand Down
2 changes: 1 addition & 1 deletion OConnor/resources/assay/Lymphocyte/views/results.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<script type="text/javascript">
<script type="text/javascript" nonce="<%=scriptNonce%>">

LABKEY.requiresScript("ehr/AssayUtils.js");

Expand Down
2 changes: 1 addition & 1 deletion OConnor/resources/assay/Lymphocyte/views/runs.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<script type="text/javascript">
<script type="text/javascript" nonce="<%=scriptNonce%>">

LABKEY.requiresScript("ehr/AssayUtils.js");

Expand Down
2 changes: 1 addition & 1 deletion OConnor/resources/assay/Lymphocyte/views/upload.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<script type="text/javascript">
<script type="text/javascript" nonce="<%=scriptNonce%>">

LABKEY.requiresScript("ehr/AssayUpload.js");

Expand Down
2 changes: 1 addition & 1 deletion OConnor/resources/views/AnimalList.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

<script type="text/javascript">
<script type="text/javascript" nonce="<%=scriptNonce%>">

LABKEY.requiresScript('oconnor/moreInfo.js');

Expand Down
2 changes: 1 addition & 1 deletion OConnor/resources/views/BloodCalendar.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<html>
<script type="text/javascript">
<script type="text/javascript" nonce="<%=scriptNonce%>">

var iconsAdded = false;
var currentDate = new Date();
Expand Down
2 changes: 1 addition & 1 deletion OConnor/resources/views/BloodDraws.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

<script type="text/javascript">
<script type="text/javascript" nonce="<%=scriptNonce%>">

LABKEY.requiresScript('oconnor/moreInfo.js');

Expand Down
2 changes: 1 addition & 1 deletion OConnor/resources/views/BloodInfo.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<html>
<script type="text/javascript">
<script type="text/javascript" nonce="<%=scriptNonce%>">

var animals = LABKEY.ActionURL.getParameter('animals');
var animalList = animals.split(',');
Expand Down
2 changes: 1 addition & 1 deletion OConnor/resources/views/Chart.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<html>
<script type="text/javascript">
<script type="text/javascript" nonce="<%=scriptNonce%>">


var chart1Colors = ["000000", "FF0000", "99CC00", "339966", "33CCCC", "3366FF", "800080", "969696", "FF00FF", "FFCC00", "FFFF00", "00FF00", "00FFFF", "00CCFF", "993366", "C0C0C0", "FF99CC", "FFCC99", "FFFF99", "CCFFCC", "CCFFFF", "99CCFF", "CC99FF", "FFFFFF"];
Expand Down
2 changes: 1 addition & 1 deletion OConnor/resources/views/Elispot_Matrix.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<html>
<script type="text/javascript">
<script type="text/javascript" nonce="<%=scriptNonce%>">

LABKEY.requiresScript('oconnor/oconnorFunctions.js');

Expand Down
2 changes: 1 addition & 1 deletion OConnor/resources/views/VLChart.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<html>
<script type="text/javascript">
<script type="text/javascript" nonce="<%=scriptNonce%>">

var animals = LABKEY.ActionURL.getParameter('animals');
var animalList = animals.split(',');
Expand Down
2 changes: 1 addition & 1 deletion OConnor/resources/views/WebPartRemoval.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<html>
<script type="text/javascript">
<script type="text/javascript" nonce="<%=scriptNonce%>">



Expand Down
6 changes: 3 additions & 3 deletions OConnor/resources/views/add_keyword.html
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<html>
<head>
<script type="text/javascript">
<script type="text/javascript" nonce="<%=scriptNonce%>">
LABKEY.Utils.requiresScript("oconnor/oconnorAlabrityConfig.js");
</script>
<script type="text/javascript">
<script type="text/javascript" nonce="<%=scriptNonce%>">
LABKEY.Utils.requiresScript("oconnor/oconnorPurchaseCommon.js");
</script>
<script type="text/javascript">
<script type="text/javascript" nonce="<%=scriptNonce%>">
Ext.onReady(function(){

var pageButtons = [{text: 'Add Keyword', requiresSelection: true, handler: addKeyword}];
Expand Down
6 changes: 3 additions & 3 deletions OConnor/resources/views/all_purchases.html
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<html>
<head>
<script type="text/javascript">
<script type="text/javascript" nonce="<%=scriptNonce%>">
LABKEY.requiresScript("oconnor/oconnorAlabrityConfig.js");
</script>
<script type="text/javascript">
<script type="text/javascript" nonce="<%=scriptNonce%>">
LABKEY.requiresScript("oconnor/oconnorPurchaseCommon.js");
</script>
<script type="text/javascript">
<script type="text/javascript" nonce="<%=scriptNonce%>">
Ext.onReady(function(){

createGrid(dbSchemaName, 'all_orders', 'all', '', 'a', 'b','');
Expand Down
6 changes: 3 additions & 3 deletions OConnor/resources/views/enabled_grants.html
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<html>
<head>

<script type="text/javascript">
<script type="text/javascript" nonce="<%=scriptNonce%>">
LABKEY.Utils.requiresScript("oconnor/oconnorAlabrityConfig.js");
</script>
<script type="text/javascript">
<script type="text/javascript" nonce="<%=scriptNonce%>">
LABKEY.Utils.requiresScript("oconnor/oconnorPurchaseCommon.js");
</script>
<script type="text/javascript">
<script type="text/javascript" nonce="<%=scriptNonce%>">
Ext.onReady(function()
{
var pageButtons = [{text: 'Add New Grant', handler: addGrant}];
Expand Down
6 changes: 3 additions & 3 deletions OConnor/resources/views/enabled_shipping.html
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<html>
<head>
<script type="text/javascript">
<script type="text/javascript" nonce="<%=scriptNonce%>">
LABKEY.Utils.requiresScript("oconnor/oconnorAlabrityConfig.js");
</script>
<script type="text/javascript">
<script type="text/javascript" nonce="<%=scriptNonce%>">
LABKEY.Utils.requiresScript("oconnor/oconnorPurchaseCommon.js");
</script>
<script type="text/javascript">
<script type="text/javascript" nonce="<%=scriptNonce%>">
Ext.onReady(function()
{
var pageButtons = [{text: 'New Shipping Address', handler: newAddress}];
Expand Down
6 changes: 3 additions & 3 deletions OConnor/resources/views/enabled_vendor_quotes.html
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<html>
<head>

<script type="text/javascript">
<script type="text/javascript" nonce="<%=scriptNonce%>">
LABKEY.Utils.requiresScript("oconnor/oconnorAlabrityConfig.js");
</script>
<script type="text/javascript">
<script type="text/javascript" nonce="<%=scriptNonce%>">
LABKEY.Utils.requiresScript("oconnor/oconnorPurchaseCommon.js");
</script>
<script type="text/javascript">
<script type="text/javascript" nonce="<%=scriptNonce%>">
Ext.onReady(function()
{
var pageButtons = [{text: 'Add New Vendor Quote', handler: addQuote}];
Expand Down
6 changes: 3 additions & 3 deletions OConnor/resources/views/enabled_vendors.html
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<html>
<head>
<script type="text/javascript">
<script type="text/javascript" nonce="<%=scriptNonce%>">
LABKEY.Utils.requiresScript("oconnor/oconnorAlabrityConfig.js");
</script>
<script type="text/javascript">
<script type="text/javascript" nonce="<%=scriptNonce%>">
LABKEY.Utils.requiresScript("oconnor/oconnorPurchaseCommon.js");
</script>
<script type="text/javascript">
<script type="text/javascript" nonce="<%=scriptNonce%>">
Ext.onReady(function(){
//draw grid for all vendors

Expand Down
2 changes: 1 addition & 1 deletion OConnor/resources/views/experimentInsert.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<html>
<body>
<div id="expForm" />
<script>
<script type="text/javascript" nonce="<%=scriptNonce%>">
Ext4.onReady( function() {
Ext.QuickTips.init(); // enable tooltips for the htmleditor xtype

Expand Down
2 changes: 1 addition & 1 deletion OConnor/resources/views/experimentUpdate.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<body>
<div id="expForm" />

<script>
<script type="text/javascript" nonce="<%=scriptNonce%>">
var expNum = LABKEY.ActionURL.getParameter('experimentId');

Ext4.onReady( function() {
Expand Down
2 changes: 1 addition & 1 deletion OConnor/resources/views/experiments.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<head>
<script type="text/javascript" src="<%=contextPath%>/fileBrowser.js"></script>
<script type="text/javascript" src="<%=contextPath%>/oconnor/addExperiment.js"></script>
<script type="text/javascript">
<script type="text/javascript" nonce="<%=scriptNonce%>">

// 2012-04-06. this is the primary interface for interacting with the experiment database. the data is in the simple_experiment hard table.
// new experiments are added by clicking a button in the top menu bar. this invokes a javascript that adds a new experiment
Expand Down
6 changes: 3 additions & 3 deletions OConnor/resources/views/grant_summary.html
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<html>
<head>
<script type="text/javascript">
<script type="text/javascript" nonce="<%=scriptNonce%>">
LABKEY.Utils.requiresScript("oconnor/oconnorAlabrityConfig.js");
</script>
<script type="text/javascript">
<script type="text/javascript" nonce="<%=scriptNonce%>">
LABKEY.Utils.requiresScript("oconnor/oconnorPurchaseCommon.js");
</script>
<script type="text/javascript">
<script type="text/javascript" nonce="<%=scriptNonce%>">
//wait until page contents load
Ext.onReady(function(){

Expand Down
6 changes: 3 additions & 3 deletions OConnor/resources/views/inventory_all_samples.html
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<html>
<head>
<script type="text/javascript">
<script type="text/javascript" nonce="<%=scriptNonce%>">
LABKEY.Utils.requiresScript("oconnor/oconnorAlabrityConfig.js");
</script>
<script type="text/javascript">
<script type="text/javascript" nonce="<%=scriptNonce%>">
LABKEY.Utils.requiresScript("oconnor/oconnorFreezerCommon.js");
</script>
<script type="text/javascript">
<script type="text/javascript" nonce="<%=scriptNonce%>">
Ext.onReady(function(){

createGrid(dbSchemaName, 'inventory', 'all_samples', 'Inventory', 'a', 'b','');
Expand Down
8 changes: 4 additions & 4 deletions OConnor/resources/views/inventory_cells_available.html
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
<html>
<head>
<script type="text/javascript">
<script type="text/javascript" nonce="<%=scriptNonce%>">
LABKEY.Utils.requiresScript("oconnor/oconnorAlabrityConfig.js");
</script>
<script type="text/javascript">
<script type="text/javascript" nonce="<%=scriptNonce%>">
LABKEY.Utils.requiresScript("oconnor/oconnorFreezerCommon.js");
</script>
<script type="text/javascript">
<script type="text/javascript" nonce="<%=scriptNonce%>">
LABKEY.Utils.requiresScript("oconnor/inventoryDrawCellsLayout.js");
</script>
<script type="text/javascript">
<script type="text/javascript" nonce="<%=scriptNonce%>">
Ext.onReady(function(){

//add custom button to add specimens to inventory
Expand Down
8 changes: 4 additions & 4 deletions OConnor/resources/views/inventory_dna_available.html
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
<html>
<head>
<script type="text/javascript">
<script type="text/javascript" nonce="<%=scriptNonce%>">
LABKEY.Utils.requiresScript("oconnor/oconnorAlabrityConfig.js");
</script>
<script type="text/javascript">
<script type="text/javascript" nonce="<%=scriptNonce%>">
LABKEY.Utils.requiresScript("oconnor/oconnorFreezerCommon.js");
</script>
<script type="text/javascript">
<script type="text/javascript" nonce="<%=scriptNonce%>">
LABKEY.Utils.requiresScript("oconnor/inventoryDrawPlasmidLayout.js");
</script>
<script type="text/javascript">
<script type="text/javascript" nonce="<%=scriptNonce%>">
Ext.onReady(function(){

//add custom button to add specimens to inventory
Expand Down
8 changes: 4 additions & 4 deletions OConnor/resources/views/inventory_oligo_available.html
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
<html>
<head>
<script type="text/javascript">
<script type="text/javascript" nonce="<%=scriptNonce%>">
LABKEY.Utils.requiresScript("oconnor/oconnorAlabrityConfig.js");
</script>
<script type="text/javascript">
<script type="text/javascript" nonce="<%=scriptNonce%>">
LABKEY.Utils.requiresScript("oconnor/oconnorFreezerCommon.js");
</script>
<script type="text/javascript">
<script type="text/javascript" nonce="<%=scriptNonce%>">
LABKEY.Utils.requiresScript("oconnor/inventoryDrawOligoLayout.js");
</script>
<script type="text/javascript">
<script type="text/javascript" nonce="<%=scriptNonce%>">
Ext.onReady(function(){

//add custom button to add specimens to inventory
Expand Down
2 changes: 1 addition & 1 deletion OConnor/resources/views/inventory_specimen_available.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div id="a"></div>
<script type="text/javascript">
<script type="text/javascript" nonce="<%=scriptNonce%>">

// called once Ext is ready
var initSpecimenAvailable = function() {
Expand Down
8 changes: 4 additions & 4 deletions OConnor/resources/views/inventory_virus_available.html
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
<html>
<head>
<script type="text/javascript">
<script type="text/javascript" nonce="<%=scriptNonce%>">
LABKEY.Utils.requiresScript("oconnor/oconnorAlabrityConfig.js");
</script>
<script type="text/javascript">
<script type="text/javascript" nonce="<%=scriptNonce%>">
LABKEY.Utils.requiresScript("oconnor/oconnorFreezerCommon.js");
</script>
<script type="text/javascript">
<script type="text/javascript" nonce="<%=scriptNonce%>">
LABKEY.Utils.requiresScript("oconnor/inventoryDrawVirusLayout.js");
</script>
<script type="text/javascript">
<script type="text/javascript" nonce="<%=scriptNonce%>">
Ext.onReady(function(){

//add custom button to add specimens to inventory
Expand Down
6 changes: 3 additions & 3 deletions OConnor/resources/views/mark_cancelled.html
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<html>
<head>
<script type="text/javascript">
<script type="text/javascript" nonce="<%=scriptNonce%>">
LABKEY.Utils.requiresScript("oconnor/oconnorAlabrityConfig.js");
</script>
<script type="text/javascript">
<script type="text/javascript" nonce="<%=scriptNonce%>">
LABKEY.Utils.requiresScript("oconnor/oconnorPurchaseCommon.js");
</script>
<script type="text/javascript">
<script type="text/javascript" nonce="<%=scriptNonce%>">
Ext.onReady(function(){

var pageButtons = [{text: 'Mark as Cancelled', requiresSelection: true, handler: markCancelled}];
Expand Down
6 changes: 3 additions & 3 deletions OConnor/resources/views/mark_invoiced.html
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<html>
<head>
<script type="text/javascript">
<script type="text/javascript" nonce="<%=scriptNonce%>">
LABKEY.Utils.requiresScript("oconnor/oconnorAlabrityConfig.js");
</script>
<script type="text/javascript">
<script type="text/javascript" nonce="<%=scriptNonce%>">
LABKEY.Utils.requiresScript("oconnor/oconnorPurchaseCommon.js");
</script>
<script type="text/javascript">
<script type="text/javascript" nonce="<%=scriptNonce%>">
Ext.onReady(function(){

var pageButtons = [{text: 'Mark as Invoiced', requiresSelection: true, handler: markInvoiced}];
Expand Down
6 changes: 3 additions & 3 deletions OConnor/resources/views/mark_ordered.html
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<html>
<head>
<script type="text/javascript">
<script type="text/javascript" nonce="<%=scriptNonce%>">
LABKEY.Utils.requiresScript("oconnor/oconnorAlabrityConfig.js");
</script>
<script type="text/javascript">
<script type="text/javascript" nonce="<%=scriptNonce%>">
LABKEY.Utils.requiresScript("oconnor/oconnorPurchaseCommon.js");
</script>
<script type="text/javascript">
<script type="text/javascript" nonce="<%=scriptNonce%>">
Ext.onReady(function(){

var pageButtons = [{text: 'Mark as Ordered', requiresSelection: true, handler: markOrdered}];
Expand Down
6 changes: 3 additions & 3 deletions OConnor/resources/views/mark_received.html
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<html>
<head>
<script type="text/javascript">
<script type="text/javascript" nonce="<%=scriptNonce%>">
LABKEY.Utils.requiresScript("oconnor/oconnorAlabrityConfig.js");
</script>
<script type="text/javascript">
<script type="text/javascript" nonce="<%=scriptNonce%>">
LABKEY.Utils.requiresScript("oconnor/oconnorPurchaseCommon.js");
</script>
<script type="text/javascript">
<script type="text/javascript" nonce="<%=scriptNonce%>">
Ext.onReady(function(){

var pageButtons = [{text: 'Mark as Received', requiresSelection: true, handler: markReceived}];
Expand Down
Loading