Ticket #31485: 31485.3.diff
File 31485.3.diff, 3.4 KB (added by , 8 years ago) |
---|
-
wp-admin/css/edit.css
1063 1063 13.0 - Tags 1064 1064 ------------------------------------------------------------------------------*/ 1065 1065 1066 .tagsdiv {1067 margin-top: -8px;1068 }1069 1066 1070 #poststuff .taghint {1071 color: #aaa;1072 margin: 15px 0 -24px 12px;1073 }1074 1075 1067 #poststuff .tagsdiv .howto { 1076 1068 margin: 0 0 6px 0; 1077 1069 } … … 1096 1088 margin: 0 5px; 1097 1089 } 1098 1090 1099 /* tag hints */1100 .taghint {1101 color: #aaa;1102 margin: -17px 0 0 7px;1103 visibility: hidden;1104 }1105 1091 1106 input.newtag ~ div.taghint {1107 visibility: visible;1108 }1109 1110 input.newtag:focus ~ div.taghint {1111 visibility: hidden;1112 }1113 1114 1092 p.popular-tags { 1115 1093 border: none; 1116 1094 line-height: 2em; -
wp-admin/css/press-this.css
258 258 display: none; 259 259 } 260 260 261 .screen-reader-text, 262 .taghint { 261 .screen-reader-text { 263 262 position: absolute; 264 263 margin: -1px; 265 264 padding: 0; -
wp-admin/includes/class-wp-press-this.php
644 644 ?> 645 645 <div class="ajaxtag hide-if-no-js"> 646 646 <label class="screen-reader-text" for="new-tag-post_tag"><?php _e( 'Tags' ); ?></label> 647 <div class="taghint"><?php echo $taxonomy->labels->add_new_item; ?></div>648 647 <p> 649 648 <input type="text" id="new-tag-post_tag" name="newtag[post_tag]" class="newtag form-input-tip" size="16" autocomplete="off" value="" /> 650 649 <button type="button" class="button tagadd"><?php _e( 'Add' ); ?></button> -
wp-admin/includes/meta-boxes.php
418 418 <?php if ( $user_can_assign_terms ) : ?> 419 419 <div class="ajaxtag hide-if-no-js"> 420 420 <label class="screen-reader-text" for="new-tag-<?php echo $tax_name; ?>"><?php echo $box['title']; ?></label> 421 <div class="taghint"><?php echo $taxonomy->labels->add_new_item; ?></div>422 421 <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="" /> 423 422 <input type="button" class="button tagadd" value="<?php esc_attr_e('Add'); ?>" /></p> 424 423 </div> -
wp-admin/js/tags-box.js
158 158 t.flushTags( $(this).closest('.tagsdiv') ); 159 159 }); 160 160 161 $('div.taghint', ajaxtag).click(function(){162 $(this).css('visibility', 'hidden').parent().siblings('.newtag').focus();163 });164 161 165 $('input.newtag', ajaxtag).blur(function() { 166 if ( '' === this.value ) 167 $(this).parent().siblings('.taghint').css('visibility', ''); 168 }).focus(function(){ 169 $(this).parent().siblings('.taghint').css('visibility', 'hidden'); 170 }).keyup(function(e){ 162 $('input.newtag', ajaxtag).keyup(function(e){ 171 163 if ( 13 == e.which ) { 172 164 tagBox.flushTags( $(this).closest('.tagsdiv') ); 173 165 return false;