修复自定义区域聚焦

This commit is contained in:
fen
2013-12-06 17:38:04 +08:00
parent f5b3e92e8a
commit 376c8869b7
2 changed files with 3 additions and 3 deletions

View File

@@ -4,7 +4,7 @@ $fields = isset($post) ? $post->getFieldItems() : $page->getFieldItems();
$defaultFields = isset($post) ? $post->getDefaultFieldItems() : $page->getDefaultFieldItems();
?>
<section id="custom-field" class="typecho-post-option<?php if (empty($defaultFields) && empty($fields)): ?> fold<?php endif; ?>">
<label id="custom-field-expand" class="typecho-label"><i class="i-caret-right"></i> <?php _e('自定义字段'); ?></label>
<label id="custom-field-expand" class="typecho-label" tabindex="0" role="button"><i class="i-caret-right"></i> <?php _e('自定义字段'); ?></label>
<table class="typecho-list-table mono">
<colgroup>
<col width="25%"/>

View File

@@ -113,8 +113,8 @@ Typecho_Widget::widget('Widget_Contents_Post_Edit')->to($post);
</select>
</p>
<p id="post-password"<?php if (strlen($post->password) == 0): ?> class="hidden"<?php endif; ?>>
<label for="password" class="visuallyhidden">内容密码</label>
<input type="text" name="password" class="text-s" value="<?php $post->password(); ?>" size="16" placeholder="<?php _e('内容密码'); ?>" />
<label for="protect-pwd" class="visuallyhidden">内容密码</label>
<input type="text" name="password" id="protect-pwd" class="text-s" value="<?php $post->password(); ?>" size="16" placeholder="<?php _e('内容密码'); ?>" />
</p>
</section>
<?php endif; ?>