flakey 0.6.0 → 0.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/flakey/buffer.rb +1 -1
- data/lib/flakey/version.rb +1 -1
- data/vendor/assets/javascripts/flakey/popup.js +12 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a829e52a82f52ed6ef10c92b9bb4af0b9b3c8656
|
4
|
+
data.tar.gz: 94796fefca885f2759b0e63a8856db6f0cf51b26
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 99e9e48c9da00742bbd8cffe5ee9367896e7c6220bd9ad4a407043b280bddd15d837c89fa477187395438789b5695458d6cb4f6ab3303ef69e01ff8f97b9fac1
|
7
|
+
data.tar.gz: 3015c31a7b0d0453006e444223088ce28767a80da476ab4d4534e3f4daa237ab81a3e148a6195635461b6f8def8ad17f56477d290e124b1d3b985005942a8322
|
data/lib/flakey/buffer.rb
CHANGED
data/lib/flakey/version.rb
CHANGED
@@ -22,7 +22,18 @@ if (typeof jQuery === "undefined") {
|
|
22
22
|
$(function(){
|
23
23
|
$('.custom-tweet-button, .facebook-share-button, .flakey-popup').on('click', function(e){
|
24
24
|
e.preventDefault();
|
25
|
-
|
25
|
+
var opts = {},
|
26
|
+
$link = $(e.target).closest('a');
|
27
|
+
|
28
|
+
if (typeof $link.data('flakey-width') !== "undefined") {
|
29
|
+
opts.width = parseFloat($link.data('flakey-width'));
|
30
|
+
};
|
31
|
+
|
32
|
+
if (typeof $link.data('flakey-height') !== "undefined") {
|
33
|
+
opts.height = parseFloat($link.data('flakey-height'));
|
34
|
+
};
|
35
|
+
|
36
|
+
openPopup($link.attr('href'), 'share', opts);
|
26
37
|
});
|
27
38
|
});
|
28
39
|
})(jQuery);
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: flakey
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Tuite
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2014-01-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|