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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 830bc7ea22c4c7631c6381305c882c79686d7901
4
- data.tar.gz: 0f01d9e89f377ad4401f84fd56849b29ab97e6e2
3
+ metadata.gz: 8299aaf91c493f5647e35b677c6a8858925d3ea8
4
+ data.tar.gz: 345871b997f0336998b8898ffa77f5ff819bfea0
5
5
  SHA512:
6
- metadata.gz: c2c714d94a6ffcfc6dca1542fe58bdd8e7033d4fd2b814ad911a624e85f668278babd2cb8c7a49b40abeec404ea1cdc785fad9595474e372f53cfb5882545acc
7
- data.tar.gz: 31d1ebdecffd92e2810ce5ddac4399ae7ff47af349df490d868e6a8234a0ea2cc1c7bcae9565c66d3b6d0b8561e59760ace3e4e143cdbd183c8117a34c3ca7b5
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').click(function(event) {
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
+ });
@@ -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
- "#{content_tag(:div, more_content.html_safe, class: 'social-share-more')} #{javascript_tag 'SocialShare.openUrl()'}"
66
+ content_tag(:div, more_content.html_safe, class: 'social-share-more')
67
67
  end
68
68
  end
69
69
  end
@@ -1,3 +1,3 @@
1
1
  module SocialShare
2
- VERSION = "0.2.3"
2
+ VERSION = "0.2.4"
3
3
  end
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.3
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-02-19 00:00:00.000000000 Z
11
+ date: 2016-08-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler