Changeset 31607
- Timestamp:
- 03/03/2015 09:52:35 PM (10 years ago)
- Location:
- trunk/src/wp-admin
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/css/edit.css
r31573 r31607 1064 1064 ------------------------------------------------------------------------------*/ 1065 1065 1066 .tagsdiv {1067 margin-top: -8px;1068 }1069 1070 #poststuff .taghint {1071 color: #aaa;1072 margin: 15px 0 -24px 12px;1073 }1074 1075 1066 #poststuff .tagsdiv .howto { 1076 1067 margin: 0 0 6px 0; … … 1095 1086 #post-body-content .tagsdiv .the-tags { 1096 1087 margin: 0 5px; 1097 }1098 1099 /* tag hints */1100 .taghint {1101 color: #aaa;1102 margin: -17px 0 0 7px;1103 visibility: hidden;1104 }1105 1106 input.newtag ~ div.taghint {1107 visibility: visible;1108 }1109 1110 input.newtag:focus ~ div.taghint {1111 visibility: hidden;1112 1088 } 1113 1089 -
trunk/src/wp-admin/css/press-this.css
r31598 r31607 259 259 } 260 260 261 .screen-reader-text, 262 .taghint { 261 .screen-reader-text { 263 262 position: absolute; 264 263 margin: -1px; -
trunk/src/wp-admin/includes/class-wp-press-this.php
r31601 r31607 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="" /> -
trunk/src/wp-admin/includes/meta-boxes.php
r31550 r31607 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> -
trunk/src/wp-admin/js/tags-box.js
r31566 r31607 159 159 }); 160 160 161 $('div.taghint', ajaxtag).click(function(){ 162 $(this).css('visibility', 'hidden').parent().siblings('.newtag').focus(); 163 }); 164 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){ 161 $('input.newtag', ajaxtag).keyup(function(e){ 171 162 if ( 13 == e.which ) { 172 163 tagBox.flushTags( $(this).closest('.tagsdiv') );
Note: See TracChangeset
for help on using the changeset viewer.