Last active
March 10, 2017 18:13
-
-
Save stevenkellow/6d6f5114cd7de937b33786b49b0e911f to your computer and use it in GitHub Desktop.
Ninja Forms password hotfix
This file contains hidden or 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
var pass = document.getElementById("nf-field-3"); | |
pass.type = 'password'; |
This file contains hidden or 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
<?php | |
add_action( 'wp_enqueue_scripts', 'ninja_forms_password_fix', 99 ); | |
function ninja_forms_password_fix(){ | |
wp_enqueue_script( 'nf-password-fix', get_stylesheet_directory_uri() . '/js/ninja-forms-password-fix.js', array( 'jquery' ) ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment