]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-admin/js/post.dev.js
Wordpress 3.1
[autoinstalls/wordpress.git] / wp-admin / js / post.dev.js
index 9a39e08f5bf55492f18b9fc89066f89d52fc89f9..fc469b795b2fb4d029c04c152e3f06f8f30b5d3a 100644 (file)
@@ -180,9 +180,9 @@ commentsBox = {
                        'action' : 'get-comments',
                        'mode' : 'single',
                        '_ajax_nonce' : $('#add_comment_nonce').val(),
-                       'post_ID' : $('#post_ID').val(),
+                       'p' : $('#post_ID').val(),
                        'start' : st,
-                       'num' : num
+                       'number' : num
                };
 
                $.post(ajaxurl, data,
@@ -196,7 +196,6 @@ commentsBox = {
 
                                        theList = theExtraList = null;
                                        $("a[className*=':']").unbind();
-                                       setCommentsList();
 
                                        if ( commentsBox.st > commentsBox.total )
                                                $('#show-comments').hide();
@@ -369,8 +368,8 @@ jQuery(document).ready( function($) {
                }
 
                function updateText() {
-                       var attemptedDate, originalDate, currentDate, publishOn, page = 'page' == pagenow || 'page-new' == pagenow,
-                               postStatus = $('#post_status'), optPublish = $('option[value=publish]', postStatus), aa = $('#aa').val(),
+                       var attemptedDate, originalDate, currentDate, publishOn, postStatus = $('#post_status'),
+                               optPublish = $('option[value=publish]', postStatus), aa = $('#aa').val(),
                                mm = $('#mm').val(), jj = $('#jj').val(), hh = $('#hh').val(), mn = $('#mn').val();
 
                        attemptedDate = new Date( aa, mm - 1, jj, hh, mn );
@@ -392,10 +391,7 @@ jQuery(document).ready( function($) {
                                $('#publish').val( postL10n.publish );
                        } else {
                                publishOn = postL10n.publishOnPast;
-                               if ( page )
-                                       $('#publish').val( postL10n.updatePage );
-                               else
-                                       $('#publish').val( postL10n.updatePost );
+                               $('#publish').val( postL10n.update );
                        }
                        if ( originalDate.toUTCString() == attemptedDate.toUTCString() ) { //hack
                                $('#timestamp').html(stamp);
@@ -411,10 +407,7 @@ jQuery(document).ready( function($) {
                        }
 
                        if ( $('input:radio:checked', '#post-visibility-select').val() == 'private' ) {
-                               if ( page )
-                                       $('#publish').val( postL10n.updatePage );
-                               else
-                                       $('#publish').val( postL10n.updatePost );
+                               $('#publish').val( postL10n.update );
                                if ( optPublish.length == 0 ) {
                                        postStatus.append('<option value="publish">' + postL10n.privatelyPublished + '</option>');
                                } else {