Skip to content

Commit

Permalink
Merge pull request #149 from hmrc/VEIOSS-679
Browse files Browse the repository at this point in the history
VEIOSS-679 | Added CSPNonce.attr to Layout for application.min.js to …
  • Loading branch information
Lee-Powell authored Sep 19, 2024
2 parents 6e7c9d5 + def58cd commit 40afa8a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/assets/javascripts/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ if (typeof HMRCAccessibleAutocomplete != 'undefined' && document.querySelector('
document.getElementById("submit").addEventListener("click", showTheSpinner);

function showTheSpinner() {

console.log('Spinner function triggered');
const processingWheel = document.getElementById("processing-wheel");

//make the spinning wheel visible
Expand Down
2 changes: 1 addition & 1 deletion app/views/components/ButtonGroupProcessing.scala.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
@(continueMessage: String, continueUrl: String, period: Period, waypoints: Waypoints)(implicit messages: Messages)
<div class="govuk-button-group" id="processing-button-group">
@govukButton(
ButtonViewModel(messages(continueMessage)).withAttribute(("id", "submit")).withAttribute("onclick", "showTheSpinner()")
ButtonViewModel(messages(continueMessage)).withAttribute(("id", "submit"))
)

<a id="saveProgress" role="button" href="@routes.SavedProgressController.onPageLoad(period, RedirectUrl(continueUrl))" class="govuk-button govuk-button--secondary" data-module="govuk-button">
Expand Down
2 changes: 1 addition & 1 deletion app/views/templates/Layout.scala.html
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@

@autocompleteJavascript()
<script @CSPNonce.attr src='@controllers.routes.Assets.versioned("javascripts/accessible-autocomplete.js")'></script>
<script src='@controllers.routes.Assets.versioned("javascripts/application.min.js")'></script>
<script @CSPNonce.attr src='@controllers.routes.Assets.versioned("javascripts/application.min.js")'></script>
}

@beforeContent = {
Expand Down

0 comments on commit 40afa8a

Please sign in to comment.