Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (function( $ ) {
- $('#visibility-radio-password').click(function () {
- // If there is no password
- var $password = $('#post_password')
- if ( !$password.val() ) {
- $password.val(Math.random().toString(36).slice(2));
- }
- });
- } )( jQuery );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement