CoreFiles by mySites.guru
akismet-admin.js22 lines, 698 bytes, from wordpress-6.3-beta2.zip
Raw History Compare with 6.3-beta1
md5
878603e579fc04ee17df6f14eddd65d6
sha1
c5641f464faf2bc82e8ce87d16975db15138c2bf
sha256
241d718e8e716bcf8fca7487a0cbb6a6c01dd8899ab973e3ad653832cd0ced51
jQuery( function ( $ ) {
	$( document ).ready(function() {		
		// Main settings form - enable submit button when something in the form is changed
		var submitButton = $( '#akismet-settings-form #submit' );

		submitButton.prop( 'disabled', true );
		
		$( '#akismet-settings-form input' ).change( function() {
			submitButton.prop( 'disabled', false );
		} );
		
		$( '#akismet-settings-form input[type="text"]' ).keyup( function() {
			submitButton.prop( 'disabled', false );
		} );

		// Prevent aggressive iframe caching in Firefox
		var statsIframe = document.getElementById( 'stats-iframe' );
		if ( statsIframe ) {
			statsIframe.contentWindow.location.href = statsIframe.src;
		}
	});	 
} );

The same content is in 11 releases, WordPress 6.3-beta1 to 6.3.1. See them all, or every version of this file.