-
Notifications
You must be signed in to change notification settings - Fork 470
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9768 from awesomemotive/release/3.3.5
Release 3.3.5
- Loading branch information
Showing
467 changed files
with
28,668 additions
and
9,225 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
const toggles = document.querySelectorAll( '.edd-stripe-payment-method-toggle' ); | ||
|
||
toggles.forEach( function ( button ) { | ||
button.addEventListener( 'click', function ( e ) { | ||
e.preventDefault(); | ||
toggleElement( this.dataset.toggle ); | ||
toggles.forEach( function ( button ) { | ||
button.classList.remove( 'active' ); | ||
} ); | ||
this.classList.add( 'active' ); | ||
} ); | ||
} ); | ||
|
||
function toggleElement( value ) { | ||
var elements = document.querySelectorAll( '.edd-stripe-payment-method' ); | ||
for ( var i = 0; i < elements.length; i++ ) { | ||
elements[ i ].style.display = 'none'; | ||
} | ||
|
||
var selectedElements; | ||
if ( ! value ) { | ||
selectedElements = elements; | ||
} else { | ||
selectedElements = document.querySelectorAll( '.edd-stripe-payment-method--' + value ); | ||
} | ||
for ( var i = 0; i < selectedElements.length; i++ ) { | ||
selectedElements[ i ].style.display = 'block'; | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.