- File:
-
- 1 edited
-
trunk/wp-admin/js/inline-edit-post.dev.js (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/js/inline-edit-post.dev.js
r19478 r20191 118 118 // support multi taxonomies? 119 119 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 + ' ' } ); 121 121 } 122 122 $('html, body').animate( { scrollTop: 0 }, 'fast' ); … … 130 130 id = t.getId(id); 131 131 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']; 133 133 if ( t.type == 'page' ) 134 fields.push('post_parent', ' menu_order', 'page_template');134 fields.push('post_parent', 'page_template'); 135 135 136 136 // add the new blank row … … 185 185 var terms = $(this).text(), 186 186 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); 190 193 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 + ' ' } ); 193 197 }); 194 198 … … 248 252 249 253 // make ajax request 250 $.post( 'admin-ajax.php', params,254 $.post( ajaxurl, params, 251 255 function(r) { 252 256 $('table.widefat .inline-edit-save .waiting').hide();
Note: See TracChangeset
for help on using the changeset viewer.