]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-content/plugins/akismet/akismet.js
Wordpress 3.5.2
[autoinstalls/wordpress.git] / wp-content / plugins / akismet / akismet.js
index 8925c51f0c7b94321be2ba110a95c204c85fbddd..f3da8fd6d1d6e3525012625d66bc5636a73e6cec 100644 (file)
@@ -1,4 +1,16 @@
 jQuery(document).ready(function () {
+       jQuery( '.switch-have-key' ).click( function() {
+               var no_key = jQuery( this ).parents().find('div.no-key');               
+               var have_key = jQuery( this ).parents().find('div.have-key');
+               
+               no_key.addClass( 'hidden' );
+               have_key.removeClass( 'hidden' );               
+               
+               return false;
+       });
+       jQuery( 'p.need-key a' ).click( function(){
+               document.akismet_activate.submit();
+       });
        jQuery('.akismet-status').each(function () {
                var thisId = jQuery(this).attr('commentid');
                jQuery(this).prependTo('#comment-' + thisId + ' .column-comment div:first-child');