changeset 434:b2991317d4d7

Disable deletion key autocomplete
author nanaya <me@myconan.net>
date Fri, 13 May 2016 04:01:51 +0900
parents b445318de858
children 1d113463d154
files app/views/pastes/new.html.erb app/views/pastes/show.html.erb
diffstat 2 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/app/views/pastes/new.html.erb	Fri May 13 03:59:50 2016 +0900
+++ b/app/views/pastes/new.html.erb	Fri May 13 04:01:51 2016 +0900
@@ -16,7 +16,7 @@
 
   <div class="form-group <%= error_class f.object, :key %> form-group--narrow">
     <%= f.label :key, t(".deletion_key") %>
-    <%= f.text_field :key, :class => "form-control" %>
+    <%= f.text_field :key, :autocomplete => "off", :class => "form-control" %>
   </div>
 
   <div class="form-group">
--- a/app/views/pastes/show.html.erb	Fri May 13 03:59:50 2016 +0900
+++ b/app/views/pastes/show.html.erb	Fri May 13 04:01:51 2016 +0900
@@ -43,6 +43,7 @@
             :value => nil,
             :placeholder => t("pastes.new.deletion_key"),
             :autofocus => f.object.errors.any?,
+            :autocomplete => "off",
             :class => "form-control"
         %>