social_share 0.2.3 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/social_share/index.js +5 -1
- data/lib/social_share/helper.rb +1 -1
- data/lib/social_share/version.rb +1 -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: 8299aaf91c493f5647e35b677c6a8858925d3ea8
|
4
|
+
data.tar.gz: 345871b997f0336998b8898ffa77f5ff819bfea0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b6aceca366e94e3f4621a6ee39e488109b623839dfa2ec5af7e367980c223ccb656b3973b62b2d47508a884c4c2276bdbea8a612271de76ac45c8c6abfd9803d
|
7
|
+
data.tar.gz: 816dbfc5c72089ec1fb69dc03313623bf7580bdc3a36b42e1352843bd4cf56b7da3d4bcce289a844fb318ba4af6e56fe656583ddde177b5e0ce47618ea97ac9b
|
@@ -1,6 +1,6 @@
|
|
1
1
|
window.SocialShare = {
|
2
2
|
openUrl: function() {
|
3
|
-
$('.social-share a.ss-button'
|
3
|
+
$('body').on('click', '.social-share a.ss-button', function(event) {
|
4
4
|
event.preventDefault()
|
5
5
|
windowName = $(event.target).attr('title')
|
6
6
|
var width = 575,
|
@@ -30,3 +30,7 @@ window.SocialShare = {
|
|
30
30
|
});
|
31
31
|
}
|
32
32
|
};
|
33
|
+
|
34
|
+
$(document).ready(function() {
|
35
|
+
window.SocialShare.openUrl();
|
36
|
+
});
|
data/lib/social_share/helper.rb
CHANGED
@@ -63,7 +63,7 @@ module SocialShare
|
|
63
63
|
more_content = link_to(tag(:span, class: 'ss-icon-plus'), "#", class: 'ss-more-button', title: 'More sharing options')
|
64
64
|
more_buttons = content_tag(:div, generate_buttons(services, title, url, options).html_safe, class: 'ss-more-buttons')
|
65
65
|
more_content += "#{more_buttons} #{javascript_tag 'SocialShare.openMore()'}".html_safe
|
66
|
-
|
66
|
+
content_tag(:div, more_content.html_safe, class: 'social-share-more')
|
67
67
|
end
|
68
68
|
end
|
69
69
|
end
|
data/lib/social_share/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: social_share
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ldewald
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-08-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|