Skip to content

Instantly share code, notes, and snippets.

@EkoJR
Created July 10, 2018 23:11
Show Gist options
  • Save EkoJR/57ec34b7e2a45e6de7aec43539aeb9ff to your computer and use it in GitHub Desktop.
Save EkoJR/57ec34b7e2a45e6de7aec43539aeb9ff to your computer and use it in GitHub Desktop.
aioseop 2.6 change
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