installed plugin Easy Digital Downloads
version 3.1.0.3
This commit is contained in:
@ -0,0 +1,21 @@
|
||||
/**
|
||||
* Internal dependencies.
|
||||
*/
|
||||
import { jQueryReady } from 'utils/jquery.js';
|
||||
|
||||
/**
|
||||
* DOM ready.
|
||||
*/
|
||||
jQueryReady( () => {
|
||||
const products = $( '#edd_products' );
|
||||
if ( ! products ) {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Show/hide conditions based on input value.
|
||||
*/
|
||||
products.change( function() {
|
||||
$( '#edd-discount-product-conditions' ).toggle( null !== products.val() );
|
||||
} );
|
||||
} );
|
Reference in New Issue
Block a user