Adjust the css selector name

pull/3246/head
Solotchi Veaceslav 9 years ago
parent 7fd856808e
commit 6c73856ede
  1. 2
      app/assets/javascripts/tooltips.js
  2. 2
      app/assets/stylesheets/content/_tooltips.md
  3. 4
      app/assets/stylesheets/content/_tooltips.sass
  4. 6
      app/views/my/password.html.erb

@ -1,5 +1,5 @@
jQuery(function($) {
var tooltipElements = $('.advanced--tooltip');
var tooltipElements = $('.advanced-tooltip');
var input = $('input[id^="new_password"]');
if(tooltipElements.length){
tooltipElements.each(function createTooltip() {

@ -116,7 +116,7 @@ Note that the tabindex has to be set manually on the `<span>` and not the contai
<span class="form--text-field-container">
<input class="form--text-field -password" id="new_password" name="new_password" size="25" type="password">
</span>
<span class="op_tooltip">
<span class="advanced-tooltip">
<em>Must be at least 10 characters long.</em><br>
<em>
Must contain characters of the following classes (at least 2 of 4):

@ -185,7 +185,7 @@ table
color: #505050
// tooltips with html support
.advanced--tooltip
.advanced-tooltip
visibility: hidden
opacity: 0
transition: visibility 0s linear 0.2s, opacity 0.2s linear
@ -224,7 +224,7 @@ table
border-width: 11px
.tooltip-visible
.advanced--tooltip
.advanced-tooltip
visibility: visible
opacity: 1
transition-delay: 0.10s

@ -48,7 +48,7 @@ See doc/COPYRIGHT.rdoc for more details.
<%= styled_label_tag 'password', User.human_attribute_name(:password) %>
<div class="form--field-container">
<%= styled_password_field_tag 'password', nil, :size => 25 %>
<span class="advanced--tooltip"></span>
<span class="advanced-tooltip"></span>
</div>
</div>
@ -56,7 +56,7 @@ See doc/COPYRIGHT.rdoc for more details.
<%= styled_label_tag 'new_password', User.human_attribute_name(:new_password) %>
<div class="form--field-container">
<%= styled_password_field_tag 'new_password', nil, :size => 25 %>
<span class="advanced--tooltip">
<span class="advanced-tooltip">
<%= render_password_complexity_tooltip %>
</span>
</div>
@ -67,7 +67,7 @@ See doc/COPYRIGHT.rdoc for more details.
User.human_attribute_name(:password_confirmation) %>
<div class="form--field-container">
<%= styled_password_field_tag 'new_password_confirmation', nil, :size => 25 %>
<span class="advanced--tooltip">
<span class="advanced-tooltip">
<%= I18n.t(:match,
scope: [:activerecord, :errors, :models, :user, :attributes, :password])%>
</span>

Loading…
Cancel
Save