Submit
Path:
~
/
home
/
getwphos
/
public_html
/
kingpanel
/
wp-content
/
plugins
/
gravityforms
/
includes
/
settings
/
js
/
File Content:
select-custom.js
window.addEventListener( 'load' , function() { var $selectOptions = document.querySelectorAll( '.gform-settings-field__select_custom select' ); var $buttons = document.querySelectorAll( '.gform-settings-select-custom__reset' ); $selectOptions.forEach( function( $select ) { var $inputField = $select.parentNode.nextSibling; $select.addEventListener( 'change', function( e ) { if ( e.target.value !== 'gf_custom' ) { return; } // Hide drop down, show input. $select.style.display = 'none'; $inputField.style.display = 'block'; } ); } ); $buttons.forEach( function( $button ) { var $inputField = $button.parentNode; $button.addEventListener( 'click', function( e ) { // Hide input, show drop down. $inputField.style.display = 'none'; jQuery( this ) .closest('div.gform-settings-field__select_custom') .find( 'select' ) .each( function( index, element ) { element.value = ''; element.style.display = 'block'; } ); } ); } ); } );
Submit
FILE
FOLDER
Name
Size
Permission
Action
dependencies.js
4148 bytes
0644
dependencies.min.js
2001 bytes
0644
select-custom.js
1034 bytes
0644
select-custom.min.js
609 bytes
0644
tabs.js
831 bytes
0644
tabs.min.js
578 bytes
0644
N4ST4R_ID | Naxtarrr