-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update
Akismet Anti-Spam: Spam Protection
plugin from 5.2 to 5.3
- Loading branch information
1 parent
4750831
commit 1cc2fd1
Showing
15 changed files
with
1,502 additions
and
329 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,7 @@ | ||
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; | ||
} | ||
}); | ||
document.addEventListener( 'DOMContentLoaded', function() { | ||
// Prevent aggressive iframe caching in Firefox | ||
var statsIframe = document.getElementById( 'stats-iframe' ); | ||
if ( statsIframe ) { | ||
statsIframe.contentWindow.location.href = statsIframe.src; | ||
} | ||
} ); |
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
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
Oops, something went wrong.