Changeset 28851
- Timestamp:
- 06/26/2014 04:07:36 PM (10 years ago)
- Location:
- trunk/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/js/inline-edit-post.js
r28600 r28851 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' ); … … 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 -
trunk/src/wp-includes/js/jquery/suggest.js
r26333 r28851 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 ) ) + ' '; 244 244 } else { 245 245 $currentVal = ""; 246 246 } 247 $input.val( $currentVal + $currentResult.text() + options.multipleSep );247 $input.val( $currentVal + $currentResult.text() + options.multipleSep + ' ' ); 248 248 $input.focus(); 249 249 } else { … … 295 295 options = options || {}; 296 296 options.multiple = options.multiple || false; 297 options.multipleSep = options.multipleSep || ", 297 options.multipleSep = options.multipleSep || ","; 298 298 options.source = source; 299 299 options.delay = options.delay || 100; -
trunk/src/wp-includes/script-loader.php
r28801 r28851 477 477 'ntdeltitle' => __('Remove From Bulk Edit'), 478 478 'notitle' => __('(no title)'), 479 'comma' => _x( ',', 'tag delimiter'),479 'comma' => trim( _x( ',', 'tag delimiter' ) ), 480 480 ) ); 481 481
Note: See TracChangeset
for help on using the changeset viewer.