ama_layout 2.2.10 → 2.2.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7,7 +7,7 @@ var domains = ['msn.com', 'bellsouth.net', 'telus.net', 'comcast.net', 'optusnet
7
7
  var secondLevelDomains = ["yahoo", "hotmail", "mail", "live", "outlook"]
8
8
 
9
9
  var $email = $('[type="email"]');
10
- var $hint = $("*#email_hint");
10
+ var $hint = $("*.email_hint");
11
11
 
12
12
  $email.on('blur', function() {
13
13
  $(this).mailcheck({
@@ -19,17 +19,17 @@ $email.on('blur', function() {
19
19
  "@<a href='#' class='email_domain'>" + suggestion.domain +
20
20
  "</a></span>?";
21
21
 
22
- element.parent().siblings("#email_hint").html(text).fadeIn(150);
22
+ element.nextAll(".email_hint:first").html(text).fadeIn(150);
23
23
  },
24
24
  empty: function(element) {
25
- element.parent().siblings("#email_hint").html("");
25
+ element.nextAll(".email_hint:first").html("");
26
26
  }
27
27
  });
28
28
  });
29
29
 
30
30
  $hint.on('click', '.email_domain', function() {
31
- email_hint = $(this).parents("#email_hint");
32
- email = $(email_hint).siblings(".input.email").find("[type='email']")
31
+ email_hint = $(this).parents(".email_hint");
32
+ email = $(email_hint).prevAll('input[type=email]:last');
33
33
 
34
34
  $(email).val($(".suggestion").first().text());
35
35
 
@@ -189,7 +189,7 @@ small.error{
189
189
  margin-top: $base-margin*8;
190
190
  }
191
191
 
192
- #email_hint{
192
+ .email_hint{
193
193
  color: $brand-red;
194
194
  display: none;
195
195
  font-size: 0.875em;
@@ -1,3 +1,3 @@
1
1
  module AmaLayout
2
- VERSION = "2.2.10"
2
+ VERSION = "2.2.11"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ama_layout
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.10
4
+ version: 2.2.11
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -18,7 +18,7 @@ authors:
18
18
  autorequire:
19
19
  bindir: bin
20
20
  cert_chain: []
21
- date: 2016-01-19 00:00:00.000000000 Z
21
+ date: 2016-01-20 00:00:00.000000000 Z
22
22
  dependencies:
23
23
  - !ruby/object:Gem::Dependency
24
24
  name: foundation-rails
@@ -360,7 +360,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
360
360
  version: '0'
361
361
  segments:
362
362
  - 0
363
- hash: -856685595973523464
363
+ hash: -3886132745808612121
364
364
  required_rubygems_version: !ruby/object:Gem::Requirement
365
365
  none: false
366
366
  requirements:
@@ -369,7 +369,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
369
369
  version: '0'
370
370
  segments:
371
371
  - 0
372
- hash: -856685595973523464
372
+ hash: -3886132745808612121
373
373
  requirements: []
374
374
  rubyforge_project:
375
375
  rubygems_version: 1.8.23