Skip to content

Commit

Permalink
Remove auto complete for some input elements.
Browse files Browse the repository at this point in the history
  • Loading branch information
joyqi committed Sep 26, 2018
1 parent b497004 commit 6fbb654
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion admin/write-page.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
<div id="tab-advance" class="tab-content">
<section class="typecho-post-option" role="application">
<label for="date" class="typecho-label"><?php _e('发布日期'); ?></label>
<p><input class="typecho-date w-100" type="text" name="date" id="date" value="<?php $page->have() ? $page->date('Y-m-d H:i') : ''; ?>" /></p>
<p><input class="typecho-date w-100" type="text" name="date" id="date" autocomplete="off" value="<?php $page->have() ? $page->date('Y-m-d H:i') : ''; ?>" /></p>
</section>

<section class="typecho-post-option">
Expand Down
4 changes: 2 additions & 2 deletions admin/write-post.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
<div id="tab-advance" class="tab-content">
<section class="typecho-post-option" role="application">
<label for="date" class="typecho-label"><?php _e('发布日期'); ?></label>
<p><input class="typecho-date w-100" type="text" name="date" id="date" value="<?php $post->have() ? $post->date('Y-m-d H:i') : ''; ?>" /></p>
<p><input class="typecho-date w-100" type="text" name="date" id="date" autocomplete="off" value="<?php $post->have() ? $post->date('Y-m-d H:i') : ''; ?>" /></p>
</section>

<section class="typecho-post-option category-option">
Expand Down Expand Up @@ -123,7 +123,7 @@
</p>
<p id="post-password"<?php if (strlen($post->password) == 0): ?> class="hidden"<?php endif; ?>>
<label for="protect-pwd" class="sr-only">内容密码</label>
<input type="text" name="password" id="protect-pwd" class="text-s" value="<?php $post->password(); ?>" size="16" placeholder="<?php _e('内容密码'); ?>" />
<input type="text" name="password" id="protect-pwd" class="text-s" value="<?php $post->password(); ?>" size="16" placeholder="<?php _e('内容密码'); ?>" autocomplete="off" />
</p>
</section>
<?php endif; ?>
Expand Down

0 comments on commit 6fbb654

Please sign in to comment.