You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
698 B
JavaScript
22 lines
698 B
JavaScript
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;
|
|
}
|
|
});
|
|
} ); |