Make WordPress Core


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/js/inline-edit-post.dev.js

    r19478 r20191  
    118118            // support multi taxonomies?
    119119            tax = 'post_tag';
    120             $('tr.inline-editor textarea[name="tax_input['+tax+']"]').suggest( 'admin-ajax.php?action=ajax-tag-search&tax='+tax, { delay: 500, minchars: 2, multiple: true, multipleSep: ", " } );
     120            $('tr.inline-editor textarea[name="tax_input['+tax+']"]').suggest( ajaxurl + '?action=ajax-tag-search&tax=' + tax, { delay: 500, minchars: 2, multiple: true, multipleSep: inlineEditL10n.comma + ' ' } );
    121121        }
    122122        $('html, body').animate( { scrollTop: 0 }, 'fast' );
     
    130130            id = t.getId(id);
    131131
    132         fields = ['post_title', 'post_name', 'post_author', '_status', 'jj', 'mm', 'aa', 'hh', 'mn', 'ss', 'post_password', 'post_format'];
     132        fields = ['post_title', 'post_name', 'post_author', '_status', 'jj', 'mm', 'aa', 'hh', 'mn', 'ss', 'post_password', 'post_format', 'menu_order'];
    133133        if ( t.type == 'page' )
    134             fields.push('post_parent', 'menu_order', 'page_template');
     134            fields.push('post_parent', 'page_template');
    135135
    136136        // add the new blank row
     
    185185            var terms = $(this).text(),
    186186                taxname = $(this).attr('id').replace('_' + id, ''),
    187                 textarea = $('textarea.tax_input_' + taxname, editRow);
    188 
    189             if ( terms )
     187                textarea = $('textarea.tax_input_' + taxname, editRow),
     188                comma = inlineEditL10n.comma;
     189
     190            if ( terms ) {
     191                if ( ',' !== comma )
     192                    terms = terms.replace(/,/g, comma);
    190193                textarea.val(terms);
    191 
    192             textarea.suggest( 'admin-ajax.php?action=ajax-tag-search&tax='+taxname, { delay: 500, minchars: 2, multiple: true, multipleSep: ", " } );
     194            }
     195
     196            textarea.suggest( ajaxurl + '?action=ajax-tag-search&tax=' + taxname, { delay: 500, minchars: 2, multiple: true, multipleSep: inlineEditL10n.comma + ' ' } );
    193197        });
    194198
     
    248252
    249253        // make ajax request
    250         $.post('admin-ajax.php', params,
     254        $.post( ajaxurl, params,
    251255            function(r) {
    252256                $('table.widefat .inline-edit-save .waiting').hide();
Note: See TracChangeset for help on using the changeset viewer.