Project

General

Profile

« Previous | Next » 

Revision 0dc8fd72

Added by Amir Fefer over 8 years ago

Fixes #11174 - Don't show password placeholder when empty

View differences:

app/helpers/layout_helper.rb
password_field_tag(:fakepassword, nil, :style => 'display: none') +
field(f, attr, options) do
options[:autocomplete] ||= 'off'
options[:placeholder] ||= password_placeholder(f.object)
options[:placeholder] ||= password_placeholder(f.object, attr)
addClass options, 'form-control'
f.password_field(attr, options) +
'<span class="glyphicon glyphicon-warning-sign input-addon"

Also available in: Unified diff