]> scripts.mit.edu Git - autoinstalls/wordpress.git/blob - wp-content/plugins/akismet/_inc/form.js
WordPress 3.9-scripts
[autoinstalls/wordpress.git] / wp-content / plugins / akismet / _inc / form.js
1 jQuery( function ( $ ) {
2         var ak_js = $( '#ak_js' );
3
4         // If the form field already exists just use that
5         if ( ak_js.length == 0 ) {
6                 ak_js = $( '<input type="hidden" id="ak_js" name="ak_js" />' );
7         }
8         else {
9                 ak_js.remove();
10         }
11
12         ak_js.val( ( new Date() ).getTime() );
13
14         // single page, front-end comment form
15         // inline comment reply, wp-admin
16         $( '#commentform, #replyrow td:first' ).append( ak_js );
17 } );