fooltip 0.0.11 → 0.0.12

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 05eb6ee3dfed5c59dd8de56d55bc9d57306325ed
4
- data.tar.gz: 09d5fed1073d45cdda5981025d1b267f1c6aae0d
3
+ metadata.gz: 3b357c74e49ff09760c906792754edcf2e1b7b73
4
+ data.tar.gz: dfda46b22893c97597e2b5ce7fdcb435b888a649
5
5
  SHA512:
6
- metadata.gz: 75e94d6e98f6159471098d096f63e12fc7b3d83c8fb7c7df1703647e95d230ab921808b9039f5df2da23f5442ed2c9ee39d060ec13f858357a13ee071783b9f9
7
- data.tar.gz: d6b9c2103a3e7d5f4852ac898f812ba93f38fb633df785055535979c191ae621957ed78074f814940f3d662735b2b5b474ca70311d71b9fc643b778a4cf99d5c
6
+ metadata.gz: b507e4a52ff693d5b3dfda834f7eec548b0fc6f3fbd4c87f0c71c81d20dca2364a55a80a758653a399a90ee054008ccfbaee95ad567c540c73db0f5d4abcbd4b
7
+ data.tar.gz: 6f477d509918083d304ac9cb33d9d29449b95f730df552cc93782e529da42affdeb62c8bac7f76c7fe1c53f97a345f1dcf3d2d7713ed3a69e1f844de3820d180
@@ -36,11 +36,25 @@ $(document).ready(function() {
36
36
 
37
37
  $('.fooltip-link').popover();
38
38
 
39
+ $('.fooltip-link').live('click', function() {
40
+ $('.fooltip-link').not(this).popover('hide');
41
+ });
42
+
39
43
  $('.popover .close').live('click', function() {
40
44
  id = $(this).closest('.popover').find('.fooltip-popup').attr('data-fooltip-link-id');
45
+ $('.popover').hide();
41
46
  $('#' + id).popover('hide');
42
47
  });
43
48
 
49
+ $(document).mouseup(function (e) {
50
+ var container = $(".fooltip-link-container");
51
+ if (!container.is(e.target) // if the target of the click isn't the container...
52
+ && container.has(e.target).length === 0) // ... nor a descendant of the container
53
+ {
54
+ $('.popover').hide();
55
+ $('.fooltip-link').popover('hide');
56
+ }
57
+ });
44
58
 
45
59
  $(window).smartresize(function() {
46
60
  $('.fooltip').resize();
@@ -27,3 +27,5 @@
27
27
  height: 32px
28
28
  width: 32px
29
29
  background: url(image-path("fooltip/link.png")) no-repeat top left
30
+ &:hover
31
+ background: url(image-path("fooltip/link_highlight.png")) no-repeat top left
@@ -1,3 +1,3 @@
1
1
  module Fooltip
2
- VERSION = "0.0.11"
2
+ VERSION = "0.0.12"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fooltip
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.11
4
+ version: 0.0.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Intesys S.r.l.
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-12-18 00:00:00.000000000 Z
12
+ date: 2015-01-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -140,6 +140,7 @@ files:
140
140
  - README.rdoc
141
141
  - Rakefile
142
142
  - app/assets/images/fooltip/link.png
143
+ - app/assets/images/fooltip/link_highlight.png
143
144
  - app/assets/javascripts/fooltip/application.js
144
145
  - app/assets/javascripts/fooltip/containers.js
145
146
  - app/assets/stylesheets/fooltip/application.css.sass