Ticket #28471: 28471.diff
File 28471.diff, 2.5 KB (added by , 11 years ago) |
---|
-
wp-admin/js/inline-edit-post.js
110 110 if ( 'post' === type ) { 111 111 // support multi taxonomies? 112 112 tax = 'post_tag'; 113 $('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 + ' '} );113 $('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} ); 114 114 } 115 115 $('html, body').animate( { scrollTop: 0 }, 'fast' ); 116 116 }, … … 195 195 textarea.val(terms); 196 196 } 197 197 198 textarea.suggest( ajaxurl + '?action=ajax-tag-search&tax=' + taxname, { delay: 500, minchars: 2, multiple: true, multipleSep: inlineEditL10n.comma + ' '} );198 textarea.suggest( ajaxurl + '?action=ajax-tag-search&tax=' + taxname, { delay: 500, minchars: 2, multiple: true, multipleSep: inlineEditL10n.comma} ); 199 199 }); 200 200 201 201 // handle the post status -
wp-includes/js/jquery/suggest.js
240 240 if ($currentResult) { 241 241 if ( options.multiple ) { 242 242 if ( $input.val().indexOf(options.multipleSep) != -1 ) { 243 $currentVal = $input.val().substr( 0, ( $input.val().lastIndexOf(options.multipleSep) + options.multipleSep.length ) ) ;243 $currentVal = $input.val().substr( 0, ( $input.val().lastIndexOf(options.multipleSep) + options.multipleSep.length ) ) + options.multipleWhiteSpace; 244 244 } else { 245 245 $currentVal = ""; 246 246 } 247 $input.val( $currentVal + $currentResult.text() + options.multipleSep );247 $input.val( $currentVal + $currentResult.text() + options.multipleSep + options.multipleWhiteSpace); 248 248 $input.focus(); 249 249 } else { 250 250 $input.val($currentResult.text()); … … 294 294 295 295 options = options || {}; 296 296 options.multiple = options.multiple || false; 297 options.multipleSep = options.multipleSep || ", "; 297 options.multipleSep = options.multipleSep || ","; 298 options.multipleWhiteSpace = options.multipleWhiteSpace || " "; 298 299 options.source = source; 299 300 options.delay = options.delay || 100; 300 301 options.resultsClass = options.resultsClass || 'ac_results';