Ticket #12153: 12153.patch
| File 12153.patch, 2.3 KB (added by ocean90, 3 years ago) |
|---|
-
wp-admin/css/wp-admin.dev.css
3654 3654 /* tag hints */ 3655 3655 .taghint { 3656 3656 color: #aaa; 3657 margin: 1 4px 0 -17px 8px;3657 margin: 15px 0 -24px 12px; 3658 3658 } 3659 3659 3660 3660 #poststuff .tagsdiv .howto { -
wp-admin/includes/meta-boxes.php
260 260 <div class="ajaxtag hide-if-no-js"> 261 261 <label class="screen-reader-text" for="new-tag-<?php echo $tax_name; ?>"><?php echo $box['title']; ?></label> 262 262 <div class="taghint"><?php echo $help_hint; ?></div> 263 < input type="text" id="new-tag-<?php echo $tax_name; ?>" name="newtag[<?php echo $tax_name; ?>]" class="newtag form-input-tip" size="16" autocomplete="off" value="" />264 <input type="button" class="button tagadd" value="<?php esc_attr_e('Add'); ?>" tabindex="3" /> 263 <p><input type="text" id="new-tag-<?php echo $tax_name; ?>" name="newtag[<?php echo $tax_name; ?>]" class="newtag form-input-tip" size="16" autocomplete="off" value="" /> 264 <input type="button" class="button tagadd" value="<?php esc_attr_e('Add'); ?>" tabindex="3" /></p> 265 265 </div> 266 266 <p class="howto"><?php echo $helps; ?></p> 267 267 <?php endif; ?> -
wp-admin/js/post.dev.js
113 113 }); 114 114 115 115 $('div.taghint', ajaxtag).click(function(){ 116 $(this).css('visibility', 'hidden'). siblings('.newtag').focus();116 $(this).css('visibility', 'hidden').parent().siblings('.newtag').focus(); 117 117 }); 118 118 119 119 $('input.newtag', ajaxtag).blur(function() { 120 120 if ( this.value == '' ) 121 $(this). siblings('.taghint').css('visibility', '');121 $(this).parent().siblings('.taghint').css('visibility', ''); 122 122 }).focus(function(){ 123 $(this). siblings('.taghint').css('visibility', 'hidden');123 $(this).parent().siblings('.taghint').css('visibility', 'hidden'); 124 124 }).keyup(function(e){ 125 125 if ( 13 == e.which ) { 126 126 tagBox.flushTags( $(this).closest('.tagsdiv') );