Created
July 10, 2018 23:11
-
-
Save EkoJR/57ec34b7e2a45e6de7aec43539aeb9ff to your computer and use it in GitHub Desktop.
aioseop 2.6 change
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
function aiospinitAll(){ | |
if ( jQuery( '.aiseop-date' ).length > 0 && jQuery( '.aiseop-date' ).eq( 0 ).prop( 'type' ).toLowerCase() === 'text' ) { | |
jQuery( '.aiseop-date' ).datepicker( | |
{ | |
dateFormat: "yy-mm-dd" | |
} | |
); | |
} | |
} | |
function aiospinitCounting(){ | |
/* count them characters */ | |
jQuery( '.aioseop_count_chars' ).on('keyup keydown', function(){ | |
countChars( jQuery(this).eq(0), jQuery(this).parent().find('[name="' + jQuery(this).attr('data-length-field') + '"]').eq(0)); | |
}); | |
jQuery( '.aioseop_count_chars' ).each(function(){ | |
countChars( jQuery(this).eq(0), jQuery(this).parent().find('[name="' + jQuery(this).attr('data-length-field') + '"]').eq(0)); | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment