Skip to content

Commit

Permalink
Merge branch 'dev' into preprod
Browse files Browse the repository at this point in the history
  • Loading branch information
tamw-wnet committed Apr 23, 2024
2 parents b868d58 + ef5e759 commit 7e2f436
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 2 deletions.
29 changes: 28 additions & 1 deletion assets/js/ea-donate-form.js
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,34 @@ var addLegalCopy = function () {

}

// Look for
var unCheckOpt = function(args) {
$(document).ready(function(){
// Function to get URL parameter by name
function getParameterByName(name, url) {
if (!url) url = window.location.href;
name = name.replace(/[\[\]]/g, "\\$&");
var regex = new RegExp("[?&]" + name + "(=([^&#]*)|&|#|$)"),
results = regex.exec(url);
if (!results) return null;
if (!results[2]) return '';
return decodeURIComponent(results[2].replace(/\+/g, " "));
}

// Get the value of the "string" parameter from the URL
var stringValue = getParameterByName('opt');
if(stringValue === '0') {
$(".at-check").eq(1).click();
$(".at-check").eq(2).click();
}

});
return args;
}


nvtag_callbacks.postRender.push(preFixAdjust);
nvtag_callbacks.postRender.push(addLegalCopy);
nvtag_callbacks.postRender.push(wnePostRender);
nvtag_callbacks.postRender.push(cssPostRender);
nvtag_callbacks.postRender.push(cssPostRender);
nvtag_callbacks.postRender.push(unCheckOpt);
2 changes: 1 addition & 1 deletion wnet-everyaction-wp-css-and-js.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class WNET_EveryAction_WP_CSS_and_JS {
public $version;

public function __construct() {
$this->version = '2024.04.10';
$this->version = '2024.04.23';
/* use today's date in the line above in 'xxxx.xx.xx' format to make sure CloudFront is using this version.
* If including the script elsewhere, it is generally best to also include that date as a query string
*/
Expand Down

0 comments on commit 7e2f436

Please sign in to comment.