Fix alignment/location of "Add" on non-hierarchical taxonomy addition boxes. Props ocean90. Fixes #12153

git-svn-id: http://svn.automattic.com/wordpress/trunk@14390 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
dd32 2010-05-03 19:29:17 +00:00
parent d20d059440
commit 3b5de7199e
5 changed files with 8 additions and 8 deletions

File diff suppressed because one or more lines are too long

View File

@ -3651,7 +3651,7 @@ span.imgedit-scale-warn {
/* tag hints */
.taghint {
color: #aaa;
margin: 14px 0 -17px 8px;
margin: 15px 0 -24px 12px;
}
#poststuff .tagsdiv .howto {

View File

@ -260,8 +260,8 @@ function post_tags_meta_box($post, $box) {
<div class="ajaxtag hide-if-no-js">
<label class="screen-reader-text" for="new-tag-<?php echo $tax_name; ?>"><?php echo $box['title']; ?></label>
<div class="taghint"><?php echo $help_hint; ?></div>
<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="" />
<input type="button" class="button tagadd" value="<?php esc_attr_e('Add'); ?>" tabindex="3" />
<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="" />
<input type="button" class="button tagadd" value="<?php esc_attr_e('Add'); ?>" tabindex="3" /></p>
</div>
<p class="howto"><?php echo $helps; ?></p>
<?php endif; ?>

View File

@ -113,14 +113,14 @@ tagBox = {
});
$('div.taghint', ajaxtag).click(function(){
$(this).css('visibility', 'hidden').siblings('.newtag').focus();
$(this).css('visibility', 'hidden').parent().siblings('.newtag').focus();
});
$('input.newtag', ajaxtag).blur(function() {
if ( this.value == '' )
$(this).siblings('.taghint').css('visibility', '');
$(this).parent().siblings('.taghint').css('visibility', '');
}).focus(function(){
$(this).siblings('.taghint').css('visibility', 'hidden');
$(this).parent().siblings('.taghint').css('visibility', 'hidden');
}).keyup(function(e){
if ( 13 == e.which ) {
tagBox.flushTags( $(this).closest('.tagsdiv') );

File diff suppressed because one or more lines are too long